Is there an SVG bubble chart?


« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Jan Dirk on 28th February 2017
Hi Richard,

One of the charts I like, is the scatter-bubble chart.
Is this already possible using the SVG scatter graph, or this on your roadmap?

Regards,

Jan Dirk
Posted by Richard on 28th February 2017
Hi there,

> Is this already possible using the SVG scatter graph, or this on your roadmap?

It's not possible (just the canvas Scatter chart has support), but I can add it to the next release for you.




Richard
Posted by Jan Dirk on 28th February 2017
That would be great, thanks.
Posted by Richard on 11th March 2017
Hi there,
I've now added this to the Scatter chart and it looks like this:

www.facebook.com/rgraph/posts/1446173912101130:0

The code looks like this:

         dataset1 = [
             {x: 10, y: 5, z: 10, color: 'red'},
             {x: 20, y: 8, z: 8, color: 'yellow'},
             {x: 30, y: 2, z: 3, color: 'blue'},
             {x: 40, y: 5, z: 5, color: 'pink'},
             {x: 50, y: 3, z: 6, color: 'black'},
             {x: 60, y: 8, z: 1, color: 'magenta'},
             {x: 70, y: 9, z: 2, color: 'cyan'},
             {x: 80, y: 4, z: 8, color: 'red'}
         ];

         var scatter = new RGraph.SVG.Scatter({
             id: 'chart-container',
             data: [dataset1],
             options: {
                 gutterTop: 50,
                 xaxisMax: 100,
                 xaxisLabels: ['Lower half','Upper half'],
                 backgroundGridVlines: false,
                 backgroundGridBorder: false,
                 yaxis: false,
                 colors: ['blue', 'red'],
                 title: 'A Scatter/Bubble chart',

                 bubble: true,
                 bubbleMaxValue: 10,
                 bubbleMaxRadius: 50,
                 bubbleColorsSolid: false
             }
         }).draw();









Richard
Posted by Jan Dirk on 12th March 2017
Nice, thanks

Add a reply

 




« Back to message list
RGraph on social media