{"id":89,"date":"2010-10-12T00:00:01","date_gmt":"2010-10-12T00:00:01","guid":{"rendered":"http:\/\/bloodforge.com\/?p=89"},"modified":"2020-02-20T03:16:17","modified_gmt":"2020-02-20T03:16:17","slug":"change-the-color-of-the-trendline-value-in-fusioncharts-v3-for-flash","status":"publish","type":"post","link":"https:\/\/bloodforge.azurewebsites.net\/index.php\/2010\/10\/12\/change-the-color-of-the-trendline-value-in-fusioncharts-v3-for-flash\/","title":{"rendered":"Change the color of the trendline value in FusionCharts v3 for Flash"},"content":{"rendered":"\n<p>It seems like FusionCharts does not support changing the color of a trendline via the TRENDVALUES style application.&nbsp; The color always seems to default to the color of the trendline.<\/p>\n\n\n\n<p>The fix to this issue involves modifying the source of the XYPlotChart.as file (you\u2019ll need the source for fusioncharts to be able to do this).<\/p>\n\n\n\n<p>Search the file for the following line (it should be line 1789):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>trendFontObj.color = this.trendLines &#91;i].color;<\/code><\/pre>\n\n\n\n<p> Right afer this line, paste the following code: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if ( this.styleM.getTextStyle (this.objects.TRENDVALUES).color != undefined ) \n{ \n    trendFontObj.color = this.styleM.getTextStyle (this.objects.TRENDVALUES).color; \n}<\/code><\/pre>\n\n\n\n<p> There may be a more \u201celegant\u201d way of doing this, but the code above will enable you to change the color of trend value lines by using styles in fusioncharts. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>It seems like FusionCharts does not support changing the color of a trendline via the TRENDVALUES style application.&nbsp; The color always seems to default to the color of the trendline. The fix to this issue involves modifying the source of the XYPlotChart.as file (you\u2019ll need the source for fusioncharts to be able to do this). [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/89"}],"collection":[{"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":1,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":90,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/89\/revisions\/90"}],"wp:attachment":[{"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}