1)We can able to build visual force charting but we need the visual force charting for responsive like different screen size for different devices with same code.
1)We can able to build visual force charting but we need the visual force charting for responsive like different screen size for different devices with same code.
Best Answer
apex:chart
uses SVG to do its drawing using the width and height provided to calculate the locations of the various lines and text. So articles like this Make SVG Responsive are relevant.To see if this "Make SVG Responsive" technique might work I took the first sample controller and page from Building a Complex Chart with Visualforce Charting. I then added the suggested styling using a class name
vf-surface
(that "Inspect Element" shows is presently added byapex:chart
to thediv
surrounding thesvg
element).The resulting page is this:
At least on Chrome, this does result in the chart being rendered to fit the page size at rendering time.