Skip to main content
Microsoft logo
Power Apps
    • AI Builder
    • Automate processes
    • Azure + Power Apps
    • Build apps
    • Connect data
    • Portals
  • Pricing
    • Overview
    • Become a Partner
    • Find a Partner
    • Find partner offers
    • Partner GTM Resources
    • Blog
    • Customer stories
    • Developer Plan
    • Documentation
    • For IT Leaders
    • Roadmap
    • Self-paced learning
    • Webinars
    • App development topics
    • Overview
    • Issues
    • Give feedback
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • User groups
    • Register
    • ·
    • Sign in
    • ·
    • Help
    Go To
    • Power Apps Community
    • Welcome to the Community!
    • News & Announcements
    • Get Help with Power Apps
    • Building Power Apps
    • Microsoft Dataverse
    • AI Builder
    • Power Apps Governance and Administering
    • Power Apps Pro Dev & ISV
    • Power Apps Portals
    • Connector Development
    • Power Query
    • Power Platform Integration - Better Together!
    • Power Platform Integrations
    • Power Platform and Dynamics 365 Integrations
    • Community Blog
    • Power Apps Community Blog
    • Galleries
    • Community Connections & How-To Videos
    • Community App Samples
    • Webinars and Video Gallery
    • Canvas Apps Components Samples
    • Kid Zone
    • Business Value Webinars and Video Gallery
    • Emergency Response Gallery
    • 2021 MSBizAppsSummit Gallery
    • 2020 MSBizAppsSummit Gallery
    • 2019 MSBizAppsSummit Gallery
    • Ideas
    • Power Apps Ideas
    • Community Engagement
    • Demo Extravaganza 2021
    • Demo Extravaganza - Components 2021
    • Power Apps Community Demo Extravaganza 2020
    • Experimental
    • Error Handling
    • Power Apps Experimental Features
    • Community Support
    • Community Accounts & Registration
    • Using the Community
    • Community Feedback
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 
    • Power Apps Community
    • Galleries
    • Canvas Apps Components Samples
    • Re: Scatter Plot

    Re: Scatter Plot

    05-13-2022 11:40 AM

    FarrellDrafting
    Advocate II
    113 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    Gabrz
    Gabrz Advocate IV
    Advocate IV
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    Scatter Plot

    ‎05-31-2020 12:28 PM

    I've been playing around with SVG in PowerApps and ended up with this Scatter Plot Component.

    ScatterPlot.jpg

    Preview file
    86 KB
    ScatterPlot.zip
    Labels:
    • Labels:
    • Components
    Message 1 of 8
    2,933 Views
    6 Kudos
    Reply
    • All posts
    • Previous Topic
    • Next Topic
    gvgorp
    gvgorp
    Regular Visitor
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    ‎01-20-2021 03:43 PM

    Wow! This is so awesome.

    I just have some feedback. The min/max values on the X axis is not evenly distributed when using this table.

    Table(
        {XAxis: 2.35, YAxis: 975},
        {XAxis: 2.36, YAxis: 980},
    	{XAxis: 2.4, YAxis: 1000}
    )

    I quicly fixed this by changing the ROUNDUP number of decimals on the varXAxisInterval and varYAxisInterval, though it does not work with the NiceAxisDistribution (experimental).

     

    Additional request: I would like to support multiple series each with a different colour. I also would like to add plotting lines between the points. Maybe I'll try to add it when I have some time available.

    Message 2 of 8
    2,565 Views
    0 Kudos
    Reply
    FarrellDrafting
    FarrellDrafting Advocate II
    Advocate II
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    ‎01-21-2021 03:59 PM

    I've been trying to get it to support multiple colors based on a collection column value, no luck so far. Best of luck to you!

    Message 3 of 8
    2,551 Views
    0 Kudos
    Reply
    FarrellDrafting
    FarrellDrafting Advocate II
    Advocate II
    In response to gvgorp
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    ‎03-05-2021 01:15 PM

    @gvgorpI made the scatter plot show different colors based on filters by adding custom Properties to the ScatterPlot Component in power apps, one for each different series you want to display and one for each color you want to use. Then in scpTmr_AnimSVG Data section, add a copy of the set varSVGData variable and rename it, i used varSVGData2. With the component changes made, you should just fill out your filtered data sets and colors into the screen component and it should load two different sets with different colors.

    ScatterPlotMulticolor.png

    Message 4 of 8
    2,409 Views
    1 Kudo
    Reply
    Anonymous
    Not applicable
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    ‎11-22-2021 03:40 PM

    @Gabrz , This is exactly what I needed! Nice work and thank you! Basic question: Where do I input my data items to be plotted? 

    Message 5 of 8
    1,115 Views
    0 Kudos
    Reply
    Anonymous
    Not applicable
    In response to Anonymous
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    ‎11-22-2021 04:30 PM

    Nevermind!!! I think I got it!

    Message 6 of 8
    1,115 Views
    1 Kudo
    Reply
    MichaelYe
    MichaelYe
    Frequent Visitor
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    2 weeks ago

    How do you load data in? can you post a quick guide? 

    Message 7 of 8
    132 Views
    0 Kudos
    Reply
    FarrellDrafting
    FarrellDrafting Advocate II
    Advocate II
    In response to MichaelYe
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    2 weeks ago

    Aren't you the guy who made the component? To add additional data, I edited the svg code as below

    "data:image/svg+xml," & 
    EncodeUrl(
        "<svg xmlns='http://www.w3.org/2000/svg'>" &
            // Main Group
            "<g transform='translate(1,1)'>" &
                // Grid Group
               "<g " &
                "stroke='" & ScatterPlot.DataGridColor & "' " &
               ">" &
                    // Grid Background
                     "<rect " &
                        "stroke='none' "&
                        "fill='" & ScatterPlot.DataGridFill & "' " &
                        "width='" & varSVGWidth & "' " &
                        "height='" & varSVGHeight & "' " &
                    "></rect>" &
                    // Grid X and Y Lines
                    varSVGGridX & varSVGGridY &
                "</g>" &
                // Data Items Group
                "<g " &
                    "fill='" & ScatterPlot.DataItemColor & "' " &
                ">" &
                    varSVGData &
                "</g>" &
    			"<g " &
                    "fill='" & ScatterPlot.DataItemsColor2 & "' " &
                ">" &
                    varSVGData2 &
                "</g>" &
            "</g>" &
        "</svg>"
    )

    from there, just set your data tables as needed, and set each datatable to draw using a different color, see images below

    total scatter plot image.png

    total scatter settings image 1.pngtotal scatter settings image 2.png

    Message 8 of 8
    113 Views
    0 Kudos
    Reply

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Automate
    • Power Virtual Agents

    Power Apps

    • Sign in
    • Sign up

    Browse

    • Sample apps
    • Services

    Downloads

    • Studio
    • iOS
    • Android

    Learn

    • Documentation
    • Support
    • Community
    • Give feedback
    • Blog
    • Partners

    • © 2022 Microsoft
    • Follow Power Apps
    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Trademarks