Sign in to follow this  
nicholasnet

Trend Line In Stackedcolumn3Dlinedy

Recommended Posts

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...? :rolleyes:

Share this post


Link to post
Share on other sites
Guest Sumedh

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...? :rolleyes:

 

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

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.

post-3460-0-97335500-1336487225_thumb.jpg

Share this post


Link to post
Share on other sites

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
   }]
}]

post-3460-0-43700000-1336501722_thumb.jpg

Share this post


Link to post
Share on other sites
Guest Sumedh

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this