9

Crystal Report 2020 - Line Chart multiple series

 1 year ago
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.
neoserver,ios ssh client
Search Questions and Answers
15 hours ago

Crystal Report 2020 - Line Chart multiple series

19 Views

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 ?

2 Answers
Sort by:

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.

1 hour ago

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)

image.png

Group #1 tag created

image.png

My chart type is : Numeric Axis Line Chart so that the time data can show up on the X axis properly.

image.png

My chart looks like this and the P2 is missing. Only P1 shown...

image.png

My data set looks like this... assuming FE = P1 and NU = P2

image.png

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 ?

image.png
Attachments

image.png (65.8 kB)
image.png (45.7 kB)
image.png (27.0 kB)
image.png (26.5 kB)
image.png (24.0 kB)
image.png (37.7 kB)
image.png (26.2 kB)
image.png (50.0 kB)
Know someone who can answer? Share a link to this

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.

Please provide a distinct answer and use the comment option for clarifying purposes.
10 characters required.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK