Crystal Report 2020 - Line Chart multiple series
source link: https://answers.sap.com/questions/13809655/crystal-report-2020-line-chart-multiple-series.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Hi, my data set looks like this...
Product, DateTime, Value
P1, 2023-02-01 12:00, 1
P1, 2023-02-01 13:00, 1.5
P1, 2023-02-01 14:00, 1.8
P1, 2023-02-01 15:00, 1.3
P1, 2023-02-01 16:00, 2
P2, 2023-02-01 13:00, 4
P2, 2023-02-01 14:00, 4.5
P2, 2023-02-01 15:00, 6
P2, 2023-02-01 16:00, 6.3
P2, 2023-02-01 17:00, 3
I want to create a line chart that shows P1, P2, P3 on the same chart but can't get it done properly. The chart seems a bit weird. I tested the same thing using SSRS and Excel, no problem to get it automatically populated. Some how Crystal Report a bit different behaviour.
Y axis = value
X axis = time
Anybody having success doing it ?
David Ku
Yes, it is possible to create a line chart in Crystal Reports that shows multiple products on the same chart. To do so, you need to create a group for each product, and then create a chart based on the groups.
To create the groups, go to the "Group Expert" window. In the "Group by" dropdown, select the "Product" field. In the "Options" tab, select the "Add a new group above" option, and then click "OK". This will create a new group for each product.
Next, create a chart based on the groups. Go to the "Insert" menu, select "Chart", and then select "Line". In the "Chart Expert" window, select the "Data" tab. Select the "Group Name" from the dropdown, and then select the "DateTime" and "Value" fields. Finally, click "OK" to create the chart.
Your line chart should now show multiple products on the same chart.
Thanks Yogananda, the results quite close but I still missed some tweaking. The P1 and P2 data is in column tag.
My chart object is in Report Footer (RF)
Group #1 tag created
My chart type is : Numeric Axis Line Chart so that the time data can show up on the X axis properly.
My chart looks like this and the P2 is missing. Only P1 shown...
My data set looks like this... assuming FE = P1 and NU = P2
I am not sure what exactly missing here.. What I want to achieve is something like this where I do it in Excel.
The column arrangement a bit different.
Any thoughts if it is possible in Crystal Report ?
Before answering
You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that your answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK