Line chart

Stimulsoft Reports.NET discussion
Post Reply
Frank
Posts: 4
Joined: Wed Apr 08, 2009 8:02 am
Location: Amsterdam

Line chart

Post by Frank »

Hi Forum,

I have a line chart in my report and I want to set the x-axis to a fixed amount of labels. Starting from the first row recieved from my datasource (Argument Data Column), till my last one. In between those rows in don't know the amount of records. The setting 'Show edge values' has no impact, while I would expect to see the first and last value.
Also with the setting step I don't recieve the result I need, because this setting depends on the amount of records receiving from the datasource. How can I achieve the desired result???

Next Issue is how can I make the 'Title' multilanguage of the graph???

Last question, I have 1 default report with trending. But the amount of trendings is different for each application. Meaning the result of the datasource I receive as input for the charts has no fixed amount of columns. I.e. the Table has the next columns: LogTime (DATETIME), TEMP1 (REAL), TEMP2 (REAL) and TEMP3 (REAL). Depending on the application TEMP3 is present or not. Can I somehow configure the chart that it will not show the the missing trend.
If the column is not present the series in the chart displays nothing, but the label of the series remains.
Is there some functionality like EXISTS???

Kind regards,
Frank
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Line chart

Post by Jan »

Hello Frank,
I have a line chart in my report and I want to set the x-axis to a fixed amount of labels. Starting from the first row recieved from my datasource (Argument Data Column), till my last one. In between those rows in don't know the amount of records. The setting 'Show edge values' has no impact, while I would expect to see the first and last value.
Also with the setting step I don't recieve the result I need, because this setting depends on the amount of records receiving from the datasource. How can I achieve the desired result???
This is not possible. This is dynamic value. Amount of labels depend from amount of data.
Next Issue is how can I make the 'Title' multilanguage of the graph???
At this moment only with help of script in report.
Last question, I have 1 default report with trending. But the amount of trendings is different for each application. Meaning the result of the datasource I receive as input for the charts has no fixed amount of columns. I.e. the Table has the next columns: LogTime (DATETIME), TEMP1 (REAL), TEMP2 (REAL) and TEMP3 (REAL). Depending on the application TEMP3 is present or not. Can I somehow configure the chart that it will not show the the missing trend.
If the column is not present the series in the chart displays nothing, but the label of the series remains.
Is there some functionality like EXISTS???
You can use following code in BeforePrintEvent:

Code: Select all

if (condition)
{
  Chart1.Series.RemoveAt(0);
}
Thank you.
Frank
Posts: 4
Joined: Wed Apr 08, 2009 8:02 am
Location: Amsterdam

Line chart

Post by Frank »

Hi Jan,

Thanx for the response, can you explain to me how to make a script in a report? Maby by some easy example.
And where can I find the pront event?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Line chart

Post by Jan »

Hello Frank,

Please check attached image.

Thank you.
Attachments
168.Sample.png
168.Sample.png (116.3 KiB) Viewed 1338 times
Post Reply