Line chart graph cut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Line chart graph cut
Hi Team,
I am showing both bar chart mashup and line chart mashup in same container showing same data as below:
As you can see Bar chart showing all bars with xaxis labels. Line chart only showing xaxis labels but lines are getting cut.
Both labels and lines are part of charts. Any idea why this is happening
Solved! Go to Solution.
- Labels:
-
Best Practices
-
Mashup-Widget
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It's two different algorithms for drawing and it seems like the line chart was given different minimal sizes. I think there is label rotation available which should give you additional space. Or leave x labels away if they are shown in the popup when hovering over the points.
You can also try to create a ticket for the diverging behavior, so this is fixed, but this will take some time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Not enough vertical space available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Both x axis labels and graph are part of line chart and bar chart.Labels are showing correctly but graph is not.
Both Bar chart and line chart allocated same space. Why only line graph is getting cut but not bar graphs?
Anything we can do with the existing space as it is a part of mashup that impacts total layout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It's two different algorithms for drawing and it seems like the line chart was given different minimal sizes. I think there is label rotation available which should give you additional space. Or leave x labels away if they are shown in the popup when hovering over the points.
You can also try to create a ticket for the diverging behavior, so this is fixed, but this will take some time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @krishnakomal211 ,
I put together a dumb test case. I am not seeing the issue you are describing in the screen shots.
What is the ThingWorx Version?
What are the Widgets (Bar Chart, Line Chart)?
Here is what my example is showing?
In my test case there is room for the x axis values.
Can you provide the property settings for each chart?
Regards,
Pehowe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thingworx version : 9.3
Widgets : Line chart
Can you try reducing size even more and check?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @krishnakomal211 ,
I am not sure what you are asking. I took the mashup and reduced the window size, That caused the various containers in the mashup to be be rescaled. to 125%
This starts to show the type of data loss you are describing. This is caused by the general construction of the page. Different areas of the mashup are resized. The Graph widget is not a single area but several , which then get resized. the Items are ptcs-chart-axis, legend-area, ptcs-chart-coord,
Can you explain what are the conditions which you encounter the resizing of the graph that causes the issue.
If I understand the use case, maybe I can offer suggestions.
Regards,
Pehowe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @krishnakomal211
When you are displaying the chart, are you displaying the chart at 100% scale? Are all the Chart items as expected?
Regards,
Pehowe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have moved legend to left and now I am able to see full data.Thanks
