Hi everyone,
I'm new to Ignition, and this is my first project. I'm working with Perspective, and I want to create a bar graph to represent energy in kWh per day for the previous days (e.g., D-1, D-2, etc.), similar to the example below:
I tried using the Bar Time Series Chart, but I couldn't figure out how to customize the X-axis to display the desired format.
Could anyone assist me with this or suggest an alternative solution?
Thank you in advance for your help!
Hi everyone,
For this topic, I found a solution to create the bar graph for energy (kWh per day for previous days, like D-1, D-2, etc.). Initially, I was using the Time Series Chart, but I couldn't format the X-axis as required. Here's how I solved it:
- Switched to the XY Chart:
- To create the desired bar graph, I used the XY Chart component instead of the Time Series Chart.
- Changed the Render Type:
- Under the Series section, I modified the chart's format by changing the
render
property to column.
- Displayed Data for the Previous 8 Days:
- To show the energy data for the last 8 days, I added a binding under the
dataSources
section, specifically for the t_stamp
field.
I hope this helps anyone else working on a similar project. Feel free to ask if you need further clarification!
1 Like