charts

chart x-axis numbering

大憨熊 提交于 2019-12-20 05:27:19
问题 I am using WinForms chart to visualize some data. I want x-axis gridlines at points specified by me. Please take a look at the following example. public partial class Form1: Form { public Form1() { InitializeComponent(); AddPoints(); } public void AddPoints() { for (int i = 0; i <= 100; i++) chart1.Series[0].Points.AddXY(i, i); } } In the chart you can see the grid lines for X-Axis appears at 19,39,59,79 and 99. But I want it in 0,15,45,65,90,100. You can clearly see the interval is not the

Can we draw google chart with two y-axis one with top and other with bottom, with same x-axis?

五迷三道 提交于 2019-12-20 05:12:33
问题 I need to use google chart with two y-axis and one x-axis, like (https://en.wikipedia.org/wiki/Spirometry#/media/File:Flow-volume-loop.svg). Does google chart support this type of graph? 回答1: to create a graph as referenced by the link use a single y-axis, with negative values for the bottom portion then use object notation to set both the value ( v: ) and the formatted value ( f: ) {v: -8, f: '8'} then use the same notation for the y-axis tick marks ( ticks: ) the chart will display the

How do I format axes on line chart google chart material?

左心房为你撑大大i 提交于 2019-12-20 05:03:46
问题 I'm having problems formatting the axes of material charts. Using "classic" line chart if I would like to format my vertical axis with a dollar sign, I would do {vAxes: { 0: {title: 'Amount',format: '$#,##'}}} Making it look like so: I would've thought I could change to {axes: {y: {Amount: {format:'$#,##', label:'Amount'} } } } after reading what little docs exist for the material charts, but this didn't work at all. Also, I have date on the horizontal axis, and the default formatting is sh*t

How do I format axes on line chart google chart material?

南笙酒味 提交于 2019-12-20 05:03:35
问题 I'm having problems formatting the axes of material charts. Using "classic" line chart if I would like to format my vertical axis with a dollar sign, I would do {vAxes: { 0: {title: 'Amount',format: '$#,##'}}} Making it look like so: I would've thought I could change to {axes: {y: {Amount: {format:'$#,##', label:'Amount'} } } } after reading what little docs exist for the material charts, but this didn't work at all. Also, I have date on the horizontal axis, and the default formatting is sh*t

Is there any chart library working both on iphone and android applications? [closed]

三世轮回 提交于 2019-12-20 05:01:43
问题 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 4 years ago . I need to develop an application on both iphone and android which have to support chart plots. (Or perhaps a similar chart library for ios/android platforms.) Or what do you recommend? Thanks 回答1: Your best bet is a pure javascript charting library like Flot. I've seen plenty of flot tutorials for Android, and

Some Questions about PHPExcel Charts

寵の児 提交于 2019-12-20 04:57:31
问题 I am using PHPExcel for generating charts in Excel Files. I have some question whoes answer I couldn't find even after lot of R&D those are How can I show data labels to chart? How can I control the width of bar charts? How can I customize colors of bar charts? I tried to show labels with layout class like : $layout = new PHPExcel_Chart_Layout(); $layout->setShowVal(TRUE); But no success. I have also explored DataSeries class and Chart Class but couldn't find any solution. Any body here who

Convert seconds to hhh:mm:ss in a chart

狂风中的少年 提交于 2019-12-20 04:31:56
问题 I have a MsSql database which calculates the timespan between two dates in seconds. That works fine. I use this column afterwards in C# and write them in an array. This array is the input for a chart later on. So far this works well, but I cannot find a way to display the seconds in a format like hhh:mm:ss as the timespan can be greater than 24h. I tried ChartArea.AxisY.LabelStyle.Format = "hhmmss"; but it does not work at all. Does anybody has an idea how I could do that? EDIT: I add the

DC.js - deselect feature or filter all but the ones that are clicked

旧城冷巷雨未停 提交于 2019-12-20 04:23:33
问题 I'm not sure if this is possible and no luck on researching this. I'm working on a dashboard using DC.js charts and crossfilter.js. I'm going to use a Row chart as an example. Instead of clicking on the items to filter, is it possible to do that opposite? For example. When I click on an item from a row chart, instead of filtering on that selected item, it will deselect that item and filter the rest of the other items. And then I will keep clicking on other items to deselect. Pretty much my

Google Chart : How to change color for negative values

孤人 提交于 2019-12-20 04:19:34
问题 I currently have a nice AreaChart using GoogleCharts, however I'm trying to change the color and background color of the chart when values are negative. From what I found, idea would be to display one area for positive values only, and another one for negative values, so that I could custom colors. However you can see below I didn't really success to do it. Any idea? Thanks, Tim google.charts.load('current', { packages: ['corechart', 'line'] }); google.charts.setOnLoadCallback(drawLineColors)

Cannot move Matplotlib plot window and exit it using red X button

假装没事ソ 提交于 2019-12-20 03:56:13
问题 I'm running Python v3.5 and matplotlib v1.4.3 on Windows 10 Home . Up to recently, I write the python script using matplotlib with PyQt GUI. The ' plt.show() ' code will be written in another module not __main__ . When I run this code, Matplotlib figure cannot be moved and exit using red button X at the top of the right side of figure. Strangely, The chart is shown and It really does work well. Why does this symptom happens? and How can I revise it? 回答1: I stumbled on a similar problem. This