Line Chart X-Axis limits not working correctly
- November 10, 2020
- 1 reply
- 3231 views
Hello everyone,
I have a simple mashup where I want to display data coming from a value stream. I have a remote thing connected to a KepServer Gateway that retrieves sensor data each second. In the mashup builder, I add the queryPropertyHistory service for the data.
Now I insert the Line Chart (Version is Thingworx 9) and link the data from the query to the chart (I choose three signals for the Y Axis and the timestamp (DATETIME) for the X Axis. I also choose maxItems for the query (e.g. 1000).
Now when I open the mashup, the data is loaded and shown properly and is also refreshing and adding the latest data each second. The problem is, that the X-Axis is way to widely scaled for the data points shown (see screenshot). My expectation would be that the X-Axis is limited to something like minimum timestamp in the data query to maximum timestamp in the query (and the window moves with the data). How can I achieve this?

I tried using the 'XAxisMinimumValues' and 'XAxisMaximumValues' parameter of the line chart but it does not seem to work at all. If I put a time stamp there (e.g. Minimum is 20 minutes before 'now' and maximum is 'now'), it shows the same range of the X-Axis as on the screenshot. Any idea why these parameters do not work?
Help is very appreciated, in case you need more info feel free to ask.
Regards,
Kevin

