Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ARAOZdX61R1ZCMj/iePlxf
Power Apps - Building Power Apps
Answered

Line chart x-axis use values in stead of labels

Like (0) ShareShare
ReportReport
Posted on 29 Jul 2020 06:27:51 by 674

I have a collection with dates and weights of an animal and I want to plot an xy chart where the horizontal distance of the points represent there difference in dates. In other words I want an xy chart. How do I achieve this in powerapps? The standard way results in dates as labels, every point equaldistance independent from date. 

Categories:
  • KCarpenter Profile Picture
    2 on 11 Apr 2023 at 18:55:25
    Re: Line chart x-axis use values in stead of labels

    What the OP is asking for is an XY chart.  This is the type to show projects ranked according to investment return (ROI).  PowerApps has some nice simple charting features that you can do quite a bit with, however XY charts are not one of them.

  • Verified answer
    v-xida-msft Profile Picture
    on 29 Jul 2020 at 08:22:37
    Re: Line chart x-axis use values in stead of labels

    Hi @HansHeintz ,

    Do you want to plot different horizontal distance of the points against the difference in dates in your Line Chart control?

     

    If you want to plot different horizontal distance of the points against the difference in dates in your Line Chart control, I afraid that there is no way to achieve your needs in PowerApps currently.

    14.JPG

     

     

    Just as you thought, the horizontal distance of the points of the 'Line Chart' control would be divided into equal distance against the records amount in your collection. Currently, there is no way to customize the horizontal distance of the points of the 'Line Chart' control based on the difference in dates.

    If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:
    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

     

    As an alternative solution, I think Power BI report could achieve your needs. On your side, you could consider store your animal weight records in a Excel file, and then you could add your Excel file data as dataset into your Power BI desktop. The Excel dataset added into your Power BI may look like this:

    15.JPG

    Then you could plot a Line Chart based on the above inserted dataset in your BI report:

    16.JPG

     

    17.JPG

    After that, you could consider pin above BI report to existing dashboard or new dashboard as a Tile. Then you could use the "Power BI Tile" control in your PowerApps canvas app to display the above Line Chart visual:

    18.JPG

     

    More details about displaying Power BI Tile in PowerApps canvas app, please check the following video resource:

    https://www.youtube.com/watch?v=CWmU3gJ9tRY

    https://www.youtube.com/watch?v=H9yYzPg0LwM

     

    Please try above alternative solution, hope it could help solve your problem.

     

    Regards,

  • eka24 Profile Picture
    20,921 on 29 Jul 2020 at 07:53:53
    Re: Line chart x-axis use values in stead of labels

    Try watching this video from Shane Young

    https://youtu.be/b8iz1ar1I4E?t=3

     

    if you still have issues, show a sample of your table

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 42 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 36

Overall leaderboard