cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Line chart graph cut

krishnakomal211
10-Marble

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:

 

krishnakomal211_0-1730995159699.png

krishnakomal211_1-1730995194961.png

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

 

ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

8 REPLIES 8

Not enough vertical space available.

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

 

 

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.

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

Thingworx version : 9.3

 

Widgets : Line chart

 

Can you try reducing size even more and check?

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

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

I have moved legend to left and now I am able to see full data.Thanks

Announcements


Top Tags