cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Yakimo
Level: Powered On

LineChart axis labels

Hello

 

I have a form with a LineChart.

On the X axes there are dates, on Y axes - %

What is the way to format the chart axis labels, like on X to show only dates (not DateTime), and in a format dd-Months-Year?

On Y chart axis labels I would like to format numbers as percent - now they 0.xyz, I would like to show in % format, like XY.Z%

 

Thanks

Yakimo

LineChart.png

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: LineChart axis labels

Hi @Yakimo,

Could you please share more details about the formula within the Items proeprty of the Line Chart control?

Further, do you want to format the chart axis labels within the Line Chart control?

If you want to format the chart axis labels within the Line Chart control directly, I afraid that there is no way to achieve your needs in PowerApp currently.10.JPG

The Y axis value is based on the Series value that you specified within your Line Chart control, and it is generated automatically. Currently, we could not format the Y axis value into the format (xy.z%) you want within Line Chart contorl in PowerApps.

The X axis value is based on the Labels value that you specified within your Line Chart control. I suppose that you specify a Date Time column within the Labels property of the Line Chart control, is it true? As an alternative solution, if you want to format the X asix value within the Line Chart control, please take a try with the following workaround:

Set the Items property of the Line Chart control to following formula:

AddColumns(
'20181122_case14',
"FormattedDate",
Text(ProductionDate,"[$-en-US]dd-mm-yyyy")
)

On your side, you should type:

AddColumns(
'YourDataSource',
"FormattedDate",
Text(DateColumn,"[$-en-US]dd-mm-yyyy") /* <-- DateColumn represents the Date Time column within your data source, which you specified within the Labels property*/
)

Set the Labels property of the Line Chart control to FormattedDate column (as below):11.JPG

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: LineChart axis labels

Hi @Yakimo,

Could you please share more details about the formula within the Items proeprty of the Line Chart control?

Further, do you want to format the chart axis labels within the Line Chart control?

If you want to format the chart axis labels within the Line Chart control directly, I afraid that there is no way to achieve your needs in PowerApp currently.10.JPG

The Y axis value is based on the Series value that you specified within your Line Chart control, and it is generated automatically. Currently, we could not format the Y axis value into the format (xy.z%) you want within Line Chart contorl in PowerApps.

The X axis value is based on the Labels value that you specified within your Line Chart control. I suppose that you specify a Date Time column within the Labels property of the Line Chart control, is it true? As an alternative solution, if you want to format the X asix value within the Line Chart control, please take a try with the following workaround:

Set the Items property of the Line Chart control to following formula:

AddColumns(
'20181122_case14',
"FormattedDate",
Text(ProductionDate,"[$-en-US]dd-mm-yyyy")
)

On your side, you should type:

AddColumns(
'YourDataSource',
"FormattedDate",
Text(DateColumn,"[$-en-US]dd-mm-yyyy") /* <-- DateColumn represents the Date Time column within your data source, which you specified within the Labels property*/
)

Set the Labels property of the Line Chart control to FormattedDate column (as below):11.JPG

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Yakimo
Level: Powered On

Re: LineChart axis labels

Thank you, Kris

 

For date X-axis it work great! I can format it as I wish

🙂 Smiley Happy

Is there any way to limit the labels on that X-axis?

I have plotted a data which is every 3 minutes and for 1 day it is quite unreadable.

Any suggestions?

Capture.JPG

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,945)