I am using google pie chart API using PHP and want to increase the font size in the chart. I found we can use 'chdls' to increase the font size but its not working... i am using this url
http://chart.apis.google.com/chart?chs=300x200&cht=p3&chl=Won|Draw|Lost&chd=t:6.0,3.0,1.0&chtt=Pie+chart+for+TalkPHP's+soccerteam|By+maZtah&chco=ff0099&chdls=18
options.pieSliceTextStyle = {fontSize:11};
You can increase the font size of Chart title by using the below code:
chts=FF0000,20,r
(chdls is used for legend size, colors ONLY)
Related
I am using a pie chart from fl_chart. Pie chart data comes from Rest API. What I want is that if an item's value is too small and doesn't fit in the pie chart color section, that value doesn't appear on the pie chart. The issue is visible in the picture. The problem seems simple but I couldn't find a solution
am using google charts to show pie charts in my angular web application. the issue is the white space around the pie chart. if i edit the chartArea attributes, the whitespace around the chart remains same, but the size of actual pie is reduced. becuase of which the legends are getting word wrapped.
because of this issue, am able to show only two pie charts in one row. i want to show minimum 3 pie charts without wordwrapping the legends. the main issue is with the whitespace around the pie chart. how can i reduce that without reducing the size of pie chart.
in below pic, i have highlighted the whitespace in blue. how to reduce the whitespace so that it just ends after the legend.
Thanks.
I create radar chart with ChartJS.
But when I have long labels than ChartJS scale chart and make it smaller.
The question is – can I make label text with ChartJS radar in a two rows? (usual <br>,/n doesn't work).
Seems like documentation doesn't provide this possibility.
You can use custom tooltips to use HTML elements to display the tooltip instead of canvas elements.
There is an example at https://github.com/nnnick/Chart.js/blob/v1.0.2/samples/pie-customTooltips.html for pie charts that does this.
How can I resize the pie and spider chart in dojo. For Bar,Columns,Lines and area charts we have resize() function with which one can resize the chart size passing height and width.
There is no such method for Pie or Spider Chart provided. How can this be achieved.
I am trying to maximze the chart to full screen after redering in smalll size on load.
Actually, the pie chart contains the method .resize(). You can pass the width and the height, like
chart.resize(400,300);
I have encounter a problem when displaying a pie graph with legend, only 1/3 of my legend items was displayed the rest are not included. For example A-Z the pie graph was able to display the slices but on the legend only A-M.
Is there any alternative for this? I tried also the bar graph but on the legend there is no values or percentage.
I was able to solve this problem by resizing the font to the smallest possible size. Thanks to this link