charts

How to create pie chart using javascript

随声附和 提交于 2019-12-19 10:24:25
问题 I have created a pie chart using javascript and my data is stored in mongodb. In my chart I am able to separate slices of pie chart. That is whenever I roll on my mouse on any of the slices it is showing the data. But my requirements are, that if I click any of the slice of it, it should display the data in some table. This is my HTML code <html> <head> <title>Pie chart</title> <script type="text/javascript" src="fusioncharts/fusioncharts.js"></script> <script type="text/javascript" src=

Excel chart dynamic range-selection

╄→尐↘猪︶ㄣ 提交于 2019-12-19 10:14:25
问题 I have a client that has a simple yet complicated request for an excel sheet setup, and I can't for the world thing of where to start. I'm drawing a blank. We have a data range. Example: Quarter Data 2010Q1 1 2010Q2 3 2010Q3 4 2010Q4 1 I have a chart built on top of that. Change data, chart changes, protect worksheet to keep other idi... er... users from changing old data. Simple. What I want to have happen: When I add the next Q1 below Q4, the chart "automagically" selects the most recent 4Q

Fixed x-axis in Highcharts Stock (stop auto-scaling)

旧巷老猫 提交于 2019-12-19 10:13:04
问题 In the chart when it start drawing main series (LTP), It draws on whole width. Is there a way to draw it just like the selector chart at bottom? EDIT : I want entire xAxis viewable and then add the points without auto-scaling the xAxis. Have a look at my code http://jsfiddle.net/S9SwB/9/ 回答1: Build up on @wergeld's solution here, as you see in his solution, the end of x-axis was position correctly at 5:30 but there was a suddent leap in time, this is because the ordinal property of the axis

How to let user create Annotations on MSChart?

走远了吗. 提交于 2019-12-19 10:12:12
问题 How do you create an Annotation on-the-run and how do you enable end-user placement with Annotation.BeginPlacement() ? I've tried to do this in multiple ways, but cannot get it working. It should render itself in real-time after the BeginPlacement() has been called. Documentations on this subject is little to none - and mostly none - so I'm not able to find any help for this problem. What I've tried so far, is to create an annotation and place it with AnchorX/Y, set all Allow- flags to true

MPAndroidChart - is it possible to control z-index of the chart elements?

隐身守侯 提交于 2019-12-19 09:49:37
问题 I would like to have the following order of drawing in my MPAndroidChart (from bottom to top): Data connecting line Limit line Data points Is it possible? I am aware of the method com.github.mikephil.charting.components.AxisBase#setDrawLimitLinesBehindData . It is working as expected except for one case. When the Y value of all data points is the same, the effect is: or this: I would like it to look like: The first 2 pictures are from MPAndroidChart Android library. The 3rd one is from iOS

Problem running official examples LineChars and ScatterChart with Apache POI 4.0

时间秒杀一切 提交于 2019-12-19 09:42:09
问题 There's a problem with the official examples LineChart and ScatterChart for Apache POI 4.0. They compile and run without errors, but the created Excel file cannot be opened stating that there is unreadable content. Excel 2010 & 2016 are giving the option to recover data from the workbook and after clickin' yes, this dialog appears. What might be the problem? 回答1: The new XDDF code lacks the setting the axId s in the lineChart and scatterChart . In /xl/charts/chart1.xml this looks like: <c

Stock chart in ExtJS 4

荒凉一梦 提交于 2019-12-19 09:24:51
问题 How can I draw an stock chart or a line chart with hundreds points? I disabled animation in regular line chart, but not successful and still too heavy and slow. 回答1: I've recently written a blog post on creating stock charts in Ext JS 4 - http://www.scottlogic.co.uk/2011/12/ext-js-4-stock-charts/. It uses a couple of hundred points and performs fine in modern browsers and isn't too bad in IE7-8. This said however, even after messing with the Ext JS build system, the minimum Ext build required

Google Chart Color

空扰寡人 提交于 2019-12-19 09:05:20
问题 I'm learning Google Chart API, and found the following code that I can use, but how to specify my own colors, I searched on Google site, it says use chco, but in this situation, how to use "chco:FFC6A5|FFFF42|DEF3BD|00A5C6" here, where do I specify that ? <html> <head> <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()

Project ERROR: Unknown module(s) in QT: charts

血红的双手。 提交于 2019-12-19 08:52:50
问题 I am building a QT app using QTwidgets to run in a RaspberyPi3 with an image inside the SDcard built with buildroot. I suppose that charts are supported since they are based in QtWidgets and widgets are supported. My problem is, when i integrate Charts in my project and run the project in the computer, there is no problem, however when I try to deploy this to the Raspberry the files and libraries are not included and errors show up. In my .pro file I have: QT += charts But this gives the

ASP.NET Charting Control no longer working with .NET 4

旧巷老猫 提交于 2019-12-19 07:11:42
问题 I've just upgraded to .NET 4 and my ASP.NET Chart Control no longer displays. For .NET 3.5, the HTML produced by the control used to look like this: <img id="20_Chart" src="/ChartImg.axd?i=chart_5f6a8fd179a246a5a0f4f44fcd7d5e03_0.png&g=16eb7881335e47dcba16fdfd8339ba1a" alt="" style="height:300px;width:300px;border-width:0px;" /> and now, for .NET 4, it looks like this (note the change in the source path): <img id="20_Chart" src="/Statistics/Summary/ChartImg.axd?i=chart