Nevron Forum

How can I draw a trend line in bar chart?

https://www.nevron.com/Forum/Topic5596.aspx

By bargitta chen - Tuesday, September 20, 2011

Dear team,

I need to draw linear/exponential trend lines in a Bar chart. Currently, I find NFunctionCalculator class, I think it may help me do this. But I do not know how to write the correct expression or the grammar of the expression. Would you please show me the grammar of the expression?

Another question is how can I draw a fold line in a bar chart? Now I have a series of points with their Y coordinates and their corresponding bar. e.g. Point A: Y=13, and X equals to where bar 3 lies.


Await your early reply!

Thank you in advance!

By Nevron Support - Wednesday, September 21, 2011

Hi,

The expressions for the NFunctionCalculator are explained in the following topic:

http://helpdotnetvision.nevron.com/UsersGuide_DataManipulation_Functions_Functions_Overview.html

 

Regarding your second question - what do you mean by "fold line in a bar chart"?

By bargitta chen - Thursday, September 22, 2011

Thank you for your reply.

A fold line means a line that is running through several data points.
I find that I cannot specify the X coordinate of a point in bar chart, since it will always map the point to the first bar, second bar; or when it is clustered bar, it goes to the first cluster, second cluster.

would you please help on that?

Many thanks
By Nevron Support - Friday, September 23, 2011

Hello,

Most of the series (including NBarSeries) have an UseXValues property - you have to set this to "true" and then fill the X values in the XValues data series. You can take a look at the following examples:

All Examples > Chart Gallery > Bar > Date Time Bars
All Examples > Chart Gallery > Bar > XYZ Scatter Stack
All Examples > Chart Gallery > Bar > XYZ Scatter Cluster
All Examples > Chart Gallery > Line > XY Scatter Line