Skip to main content
1-Visitor
August 26, 2022
Question

TWX Line Chart Property (NumberOfXLabels) Custom CSS

  • August 26, 2022
  • 1 reply
  • 785 views

As per the property of the Line chart (ptcs-chartline) named “NumberOfXLabels” there is an issue with the Date Format which is used in the property named “XAxisDateFormatToken”. As It secures Date format only on this format (YY-MM-DD) but we need it along with the Time segment like (YY-MM-DD HH:MM:SS).

 

 

GG_10197243_3-1661517820553.png

 

 

Using the format (YY-MM-DD HH:MM:SS) or (YYYY-MM-DD) as per image above, the X-labels are trimming in the way shown below and are stretching to the left.

 

 

GG_10197243_4-1661517820554.png

 

 

We want this format (YY-MM-DD HH:MM:SS). 

 

Is it possible through Custom CSS?

Through Custom CSS, ptcs-chart-axis with part "xaxis" is not accessible which is the parent element of the ptcs label.

 

How can we access this ptcs label shown in the image below to align and adjust it to the right?

GG_10197243_5-1661518042244.png

@PEHOWE @slangley 

Using TWX version 9.3.3

Thanks,
Geetansh

1 reply

Community Manager
September 14, 2022

Hi @GG_10197243.

 

Would it be possible for you to provide your mashup so we can play around with it? 

 

Regards.

 

--Sharon