Hello,
I am using an XY chart to display a ribbon chart that shows uptime/downtime of a machine.
I am trying to use a dropdown to show data from the past day or past week based on selected option. Right now when I use the drop down to change the min/max values of the range the XY chart axis are updated but the data is not re-queryed. That is until I either press the load component button or make a new selection on the dropdown. It is almost as if the range for the query is lagging by one selection.
So I tried to use the log to check the order that events are happening.
First the dropdown is From past day to Past week
Then the query updates. Here you can see it has the correct range but it is still returning 0 results (which would be correct for past day)
Then the series is built which is how the XY gets the data.
Now a second issue which I am not sure is connected is that you can see the Query and Series building occur again immediately. I am not sure why. Also this second time it happens does not affect what is actually being displayed in the Ribbon Chart.
Any help would be greatly appreciated!
Can you PM me your view and some of your sample data that you’re querying? I’m the author of the ribbon chart.
1 Like
Hi @bmusson, I am working with your ribbon chart at the minute and being new to Ignition I am having an issue with the chart and was hoping you could help me with this.
The chart is only picking up one occasion of each mode and not multiple occasions over a 24 hour period.
I have attached a binding to the start and end time of each mode, the binding brings back a dataset where the timestamp for the mode is picked up.
I am unsure if this is the correct method for getting this to work.
Would you know of a reason why I can only detect one occasion of each mode.
Regards
Richard
Hey Richard,
Could you send a copy of the props you’ve configured on the chart?
Hi @bmusson
Thank you for your reply, I have sort of solved this 
Fault with me as usual 
The script I was using to transform the dataset I was using two different Start times and I had set the end time to now(0) which prevented the last event from showing.
When I changed the now(0) to now() all the events displayed, this just created a new problem whereby the events keep updating every second, hence why i though now(0) would be more appropriate, however, this means that the current event may disappear for a few seconds before reappearing. So, trying to figure out how to fix this problem.
Richard
Hi @bmusson
I was wondering if it is possible to enable selection in the template of the XY chart and when I select an event, get the mode, start and end time returned letting me use these parameters to display information relevant to the mode and time frame.
Would I need to do this using messages?
Thanks for your help
Richard