nicholasnet Report post Posted May 7, 2012 I am trying to add linear Trendline in StackedColumn3DLineDY chart. Is there any better or I should nice way to achieve this. Furthermore, is it possible to add Trendline after I render the chart. Any hints or suggestion...please...? Share this post Link to post Share on other sites
Guest Sumedh Report post Posted May 8, 2012 I am trying to add linear Trendline in StackedColumn3DLineDY chart. Is there any better or I should nice way to achieve this. Furthermore, is it possible to add Trendline after I render the chart. Any hints or suggestion...please...? Hi, You can add trendLines on the chart by using trendLines attribute. Trend lines are horizontal lines spanning the chart canvas which aid in interpretation of data with respect to some pre-determined value. Ref. Code: <trendLines> <line startValue='895' color='FF0000' displayValue='Average' /> </trendLines> If you are willing to add vertical lines parallel to the columns, you can use vLines attribute. vLines are vertical separator lines that help you separate blocks of data. Ref. Code: <category label='Dec 2005' /> <vLine color='FF5904' thickness='2' /> <category label='Jan 2006' /> For more information, refer this: http://docs.fusioncharts.com/charts/contents/?ChartSS/StCol3DLine.html Please note, adding trendlines after the chart is rendered is not possible. Share this post Link to post Share on other sites
nicholasnet Report post Posted May 8, 2012 Here is what I am trying to do. I am trying to add linear trend-line of a line. But in order to do that I need to find x,y co-ordinates of every data point in a line chart. I want something like in attached picture (where the green line is trend-line that I like to add). Can you please give me any advice about achieving this. I found this link http://forum.fusioncharts.com/topic/391-how-are-people-generating-the-points-for-their-trend-lines/ Unfortunately, this solution won't work because my chart changes as per user selection. So, if I have to calculate trend-line then I have to that in client side. Share this post Link to post Share on other sites
nicholasnet Report post Posted May 8, 2012 Finally I figured out this problem. But I had to use MSStackedColumn2DLineDY chart instead of 3D one that I was using. However I would like to customize the look of the graph especially I would like to remove the white gradient. Is there any way to remove the gradient. I tried all this but it did not worked. "dataset": [{ "dataset": [{ "seriesname": "Clicks", "showvalues": "0", "data": clickData },{ "seriesname": "Sales", "color" : "8BBA00", "plotfillratio":"100", "plotFillAlpha":"100", "plotgradientcolor":"009933", "showvalues": "1", "data": salesData }] }] Share this post Link to post Share on other sites
Guest Sumedh Report post Posted May 9, 2012 Finally I figured out this problem. But I had to use MSStackedColumn2DLineDY chart instead of 3D one that I was using. However I would like to customize the look of the graph especially I would like to remove the white gradient. Is there any way to remove the gradient. I tried all this but it did not worked. "dataset": [{ "dataset": [{ "seriesname": "Clicks", "showvalues": "0", "data": clickData },{ "seriesname": "Sales", "color" : "8BBA00", "plotfillratio":"100", "plotFillAlpha":"100", "plotgradientcolor":"009933", "showvalues": "1", "data": salesData }] }] Hi, You can use plotGradientColor attribute. Set this attribute as blank. Ref. Code: <chart ... plotGradientColor=' '> Hope this helps. Share this post Link to post Share on other sites
nicholasnet Report post Posted May 9, 2012 Hi, You can use plotGradientColor attribute. Set this attribute as blank. Ref. Code: <chart ... plotGradientColor=' '> Hope this helps. Thank you very much that did the job perfectly. Share this post Link to post Share on other sites
Guest Sumedh Report post Posted May 10, 2012 Thank you very much that did the job perfectly. Share this post Link to post Share on other sites