Skip to main content
1-Visitor
July 8, 2021
Question

How to Reduce width of bar in bar chart widget thingworx 9.1

  • July 8, 2021
  • 2 replies
  • 2962 views

I want to reduce bar width in bar chart widget, i am currently using thingworx 9.1 version. I tried with all style properties but cant able to reduce bar width.

Please check attached images for reference

 

2 replies

5-Regular Member
July 8, 2021

I believe you are using a bar chart from custom chart widget extension package, in that I believe there is no property to alter the bar width. If you can use ptcs-barchart(OOTB) bar chart in ThingWorx 9.x, there is a property called external padding which can be used to alter the bar width.

bhavya1-VisitorAuthor
1-Visitor
July 8, 2021

Thank you for reply@mnarang 

 

i am using ptcschartbar in 9.1 version and i tried with external padding property but whole bar chart is decreasing, its not matching with my requirement

bhavya_0-1625750214253.png

My requirement 

bhavya_1-1625750276517.png

 

 

5-Regular Member
July 8, 2021

Internal padding is increasing/decreasing the width of the bar, but the number of data points/bars remains the same on the chart. In your requirement number of data points/bars are also reduced.

Internal padding = 20

mnarang_0-1625751897679.png

 Internal Padding = 50

mnarang_1-1625751935423.png

Internal Padding = 80

mnarang_2-1625751974616.png

 

bhavya1-VisitorAuthor
1-Visitor
July 13, 2021

Hi @mnarang 

 

I tried with Internal padding but not worked, still no change in runtime