Skip to main content
Jul 8, 2021 8:22 AM UTC
Question

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

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

 

4 replies

Jul 8, 2021 10:43 AM UTC

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.

bhavyaAuthor
Jul 8, 2021 1:18 PM UTC

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

 

 

Jul 8, 2021 1:46 PM UTC

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

 

bhavyaAuthor
Jul 13, 2021 6:30 AM UTC

Hi @mnarang 

 

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