Skip to main content
8-Gravel
April 9, 2024
Solved

Can I adjust padding of LineChart Widgets?

  • April 9, 2024
  • 2 replies
  • 1839 views

I have limitation of area 

I have to custom adjust padding

linechartissue1.png

and I have to set height of this (am not sure it's "svg" or "#chart")

linechartissue3.pnglinechartissue2.png

Best answer by bchaudhary_448008

Hello @AL_10742319 ,

 

This is previously asked question and has been resolved. Kindly check the community post for the same:

https://community.ptc.com/t5/ThingWorx-Developers/Line-Chart-Padding-Issue/m-p/766252#M55995%3Fsource=search

 

also, you can try using the Custom CSS :

ptcs-chart-line::part(chart-layout) { 
 padding: <padding_value>; 
}

ptcs-chart-pareto::part(chart-layout) { 
  padding: <padding_value>; 
}

 

2 replies

5-Regular Member
April 9, 2024

Hello @AL_10742319 ,

 

This is previously asked question and has been resolved. Kindly check the community post for the same:

https://community.ptc.com/t5/ThingWorx-Developers/Line-Chart-Padding-Issue/m-p/766252#M55995%3Fsource=search

 

also, you can try using the Custom CSS :

ptcs-chart-line::part(chart-layout) { 
 padding: <padding_value>; 
}

ptcs-chart-pareto::part(chart-layout) { 
  padding: <padding_value>; 
}

 

8-Gravel
April 9, 2024

Thank you for answer!
now I can adjust using the Custom CSS :

ptcs-chart-line::part(chart-layout) { 
 padding: 0;
}

 padding: 0;

AL_10742319_1-1712648109084.png

 

 

16-Pearl
April 9, 2024

Hi @AL_10742319,

Have you enabled SparkView for Line Chart?

Have you tried configuring the paddings in Style Properties > chart-layout?

TonyZhang_0-1712635239396.png

 

8-Gravel
April 9, 2024

Thank you for answer!
I have enabled SparkView, but in Style Properties don't not have chart-layout 
AL_10742319_0-1712647909876.png

 

now I can adjust using the Custom CSS :

ptcs-chart-line::part(chart-layout) { 
 padding: 0;
}

 

16-Pearl
April 9, 2024

Great! looks like the padding is exposed through Style Properties > chart-layout since TWX 9.3.4, so it's not available in older versions.