Add CSS class to different aspects

This commit is contained in:
Gergely Polonkai 2014-08-29 12:46:58 +02:00
parent 7d55580bce
commit 5c9f88326b
2 changed files with 2 additions and 1 deletions

View File

@ -1737,7 +1737,7 @@ ag_chart_create_svg(AgChart *chart, gsize *length, GError **err)
G_ENUM_CLASS(aspects_class),
gswe_aspect_data_get_aspect(aspect_data)
);
xmlNewProp(node, BAD_CAST "type", BAD_CAST enum_value->value_name);
xmlNewProp(node, BAD_CAST "type", BAD_CAST enum_value->value_nick);
}
g_type_class_unref(aspects_class);

View File

@ -644,6 +644,7 @@
<xsl:variable name="y2" select="$r_aspect * -math:sin($rad2)"/>
<line class="aspect">
<xsl:attribute name="class"><xsl:value-of select="concat('aspect aspect-', @type)"/></xsl:attribute>
<xsl:attribute name="x1"><xsl:value-of select="$x1"/></xsl:attribute>
<xsl:attribute name="y1"><xsl:value-of select="$y1"/></xsl:attribute>
<xsl:attribute name="x2"><xsl:value-of select="$x2"/></xsl:attribute>