Is there a resize option for SVG charts?

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« 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 Sudarshan on 17th July 2017
Hi Richard,



     I am using Rgraph stable version and drawing svg water fall chart, i need chart resize option.I gone through the documentation in stable version i am unable to find svgresizable.js file it's available in canvas charts.If it is in still development stage please give me alternate solution for this.
Posted by Richard on 17th July 2017
Hi there,

There's no resize functionality for SVG charts - just for the canvas charts.


Richard
Posted by Sudarshan on 17th July 2017
Hi Richard,



     I am shifted to canvas to draw water fall chart but it's showing a error in RGraph.waterfall.js
     for (var i=0,len=this.scale2.values.length; i<len; ++i) {

                         var y = this.getYCoord(this.scale2.values[i]) + offsety;

                         RG.text2(this, {
                             font:font,
                             size:size,
                             x:this.gutterLeft - 5 + offsetx,
                             y: y,
                             text:this.scale2.values[i],
                             valign:'center',
                             halign:'right',
                             tag: 'scale'
                         });

      }

but in the return there is no key with values may be it's added in later version how can i solve this issue


this problem occurred when if chart.xaxispos == bottom


Posted by Richard on 17th July 2017
Hi there,

You need to put an example page online so that I can see what you're trying to do.


Richard
Posted by Sudarshan on 18th July 2017
Hi Richard,


I can't post the link, if changed r graph common core file it's working fine.
Posted by Sudarshan on 18th July 2017
Hi Richard,


These are the properties not working in canvas water fall chart
1)key
2)labelsAboveSpecific

for this both i am sending data in array format can check it once


it's also not working for array of array to do grouping
ex:[[1,2],[3,4]]
it is also not working


check it once other suggest me other alternate solution
Posted by Richard on 18th July 2017
Hi there,

The regular canvas based key is not implemented for the Waterfall chart - you'll need to use the HTML key:

www.rgraph.net/canvas/docs/html-keys-in-charts.html

If you're using resizing then I'd suggest that you position the key above the chart or on the left hand-side.

WRT labelsAboveSpecific and grouping - neither are implemented.


Richard
Posted by Sudarshan on 18th July 2017
Hi Richard,
      special thanks for you quick reply and your suggestion.Once please go through the below link once.
     


      bl.ocks.org/rsloan/7123450


Posted by Richard on 18th July 2017
Hi there,

What about it?

Richard
Posted by Sudarshan on 18th July 2017
Hi Richard,

They are drawing chart by individual categories i.e it is not following the last assigned sum value of bar .it's doing individually for ex:{500:[250,250],1000:[500,500]} they are doing like this.the two bars depends upon total of key value not over all sum of array.One way your also doing right but i need like this now so i sent a to you.
if you are not liked it just ignore it it's my suggestion.
Posted by Richard on 18th July 2017
Hi there,

It's just a matter of configuration. Here's an example that looks pretty similar:

www.rgraph.net/fiddle/view.html/new-waterfall-example



Richard
Posted by Sudarshan on 18th July 2017
Hi Richard,


www.rgraph.net/demos/scatter-bubble-chart.html

In this example your provided two options with and w/o gradient,

how can i set it in properties let me know.

I am used this set method but it's not working
scatter.set({
          'colorsBubbleGraduated': false
      });
      RGraph.redraw();
Posted by Richard on 18th July 2017
Hi there,

How is this related to the Waterfall chart?

Set the colorsBubbleGraduated option to false.



Richard

Add a reply




« Back to message list