charts

What is a good, free PHP charting suite?

耗尽温柔 提交于 2020-01-22 16:37:18
问题 All I will be doing is basic line graphs. Any experiences anyone might share would be greatly appreciated. 回答1: openflashchart: http://teethgrinder.co.uk/open-flash-chart/ A bit beyond simple line charts. LGPL licensed so it's commercial friendly. For really simple charts take a look at the jQuery sparklines plugin. It does some really wonderful things actually. 回答2: JPGraph is a very powerful charting library for PHP 回答3: Not really PHP, but I find amchart really easy to implement and they

Google Pie chart percentage calculation

一笑奈何 提交于 2020-01-22 16:35:26
问题 I have a page that displays data in a form of a Pie Chart. I use Google Charts and here is the code: <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Product', 'Sale In Percent'], ['product2', 5.5], ['product3', 7.5], ['product4', 1.5], ['product5', 8.5], ]); var

Python matplotlib.pyplot pie charts: How to remove the label on the left side?

北战南征 提交于 2020-01-22 13:22:12
问题 I plot a piechart using pyplot. import pylab import pandas as pd test = pd.Series(['male', 'male', 'male', 'male', 'female'], name="Sex") test = test.astype("category") groups = test.groupby([test]).agg(len) groups.plot(kind='pie', shadow=True) pylab.show() The result: However, I'm unable to remove the label on the left (marked red in the picture). I already tried plt.axes().set_xlabel('') and plt.axes().set_ylabel('') but that did not work. 回答1: You could just set the ylabel by calling pylab

How to minimize whitespace around Baidu's echarts

老子叫甜甜 提交于 2020-01-22 10:43:31
问题 I'm trying to incorporate Baidu's echarts (which look really good). However, there is a lot of whitespace around the actual graph when one doesn't set a title nor uses their toolbar. Is there a way to have the graph/chart use more of the canvas? My current solution to add an extra inside the container one and then set it's width and height to be be bigger by the margins I want to remove and the offset it by setting 'top' and 'left' to negative values of the respective margins. Not elegant and

How to minimize whitespace around Baidu's echarts

做~自己de王妃 提交于 2020-01-22 10:43:10
问题 I'm trying to incorporate Baidu's echarts (which look really good). However, there is a lot of whitespace around the actual graph when one doesn't set a title nor uses their toolbar. Is there a way to have the graph/chart use more of the canvas? My current solution to add an extra inside the container one and then set it's width and height to be be bigger by the margins I want to remove and the offset it by setting 'top' and 'left' to negative values of the respective margins. Not elegant and

How to Build this Rounded Two Tone Donut Chart?

北城余情 提交于 2020-01-22 10:05:51
问题 I'm trying to make a donut chart that looks like one below I'll be using angularJS, SVG and D3.js I've no clue how to get those rounded ends, Please help. Thanks. 回答1: Simple answer: you use masks. We use a mask to draw the inner portion of the bezel. And a mask to cut the hole in the middle. The hole mask isn't really necessary. You could form the donut with thick lines. But it seemed easier to me to draw circular sectors, then make the hole. Here it is in SVG form. I'll leave the conversion

How to Build this Rounded Two Tone Donut Chart?

大兔子大兔子 提交于 2020-01-22 10:03:11
问题 I'm trying to make a donut chart that looks like one below I'll be using angularJS, SVG and D3.js I've no clue how to get those rounded ends, Please help. Thanks. 回答1: Simple answer: you use masks. We use a mask to draw the inner portion of the bezel. And a mask to cut the hole in the middle. The hole mask isn't really necessary. You could form the donut with thick lines. But it seemed easier to me to draw circular sectors, then make the hole. Here it is in SVG form. I'll leave the conversion

Using dates with the Graphview library

徘徊边缘 提交于 2020-01-21 01:43:31
问题 I'm using GraphView library (see: https://github.com/jjoe64/GraphView or http://www.jjoe64.com/p/graphview-library.html) But I would like to use Date/Time for the X-as. Does anyone knows a easy way to accomplish this or can anyone push me in the right direction? 回答1: GraphView is a great library to use, i find it the easiest as well. The first step in doing this would be to add a String Variable in the GraphViewData Class within GraphView.java. Like So: static public class GraphViewData {

Are there any good client-side stock charting libraries out there? [closed]

左心房为你撑大大i 提交于 2020-01-20 18:49:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I would like to display interactive financial stock charts on a website, something like Google or Yahoo finance. I saw some recommendations on this thread looking for stock charting component but many of the suggestions are commercial, or require silverlight to be installed. Can anyone recommend any decent

Highcharts => Getting the id of a point when clicking on a line chart

萝らか妹 提交于 2020-01-20 18:35:30
问题 I am building a line chart and I would like, when I click on a point of the line, to display a popup containing some data about this point. The issue I try to resolve is to get the id, the series associated with this point or something like that. Here is my code : plotOptions: { column: { pointWidth: 20 }, series: { cursor: 'pointer', events: { click: function(event) { requestData(event.point); } } } I tried requestData(this.point) , requestData(this.point.id) also but it doesn't work. How do