charts

Add legend to chart with D3 V4 Angular-cli

浪尽此生 提交于 2019-12-12 02:12:37
问题 I am using D3 charting library to create charts with Angular-cli. D3 version is 4.2.2. I create a multi-line chart and here is I am trying to add legend to the chart. Following code is my code look like. import {Directive, ElementRef, HostListener, Renderer} from '@angular/core'; import * as D3 from 'd3'; @Directive({ selector: 'bar-graph' }) export class BarGraphDirective { private htmlElement:HTMLElement; constructor(private elementRef:ElementRef, private renderer: Renderer) { this

CakePhp and Google Charts Plugin

眉间皱痕 提交于 2019-12-12 01:56:36
问题 Hello i'm using Google Charts Plugin to my CakePHP application. In my Controller i do: There are two functions that return two graphs. function statistics() { $this->timePerClient(); $this->timePerProjectChart(); } FUNCTION timePerProject function timePerProjectChart() { $totalProjeto = $this->timePerProject(); $tempoTotalGasto = $this->tempoTotalInvestido(); //Setup data for chart $timePerProjectChart = new GoogleChart(); $timePerProjectChart->type("PieChart"); $timePerProjectChart->options

In Android how to display percentage in pie chart with achartengine

空扰寡人 提交于 2019-12-12 01:53:17
问题 I am using achartengine for displaying the pie chart and I have tried this :-- public class AChartEnginePieChartActivity extends Activity { private static int[] COLORS = new int[] { Color.GREEN, Color.BLUE,Color.MAGENTA, Color.CYAN }; private static double[] VALUES = new double[] { 10, 11, 12, 13 }; private static String[] NAME_LIST = new String[] { "A", "B", "C", "D" }; private CategorySeries mSeries = new CategorySeries(""); private DefaultRenderer mRenderer = new DefaultRenderer(); private

How to plot graphs with data from a SerialPort with multiple sensors

删除回忆录丶 提交于 2019-12-12 01:52:43
问题 I need to plot data from sensors of pH, Temperature and Humidity, the data is sent as a matrix from arduino to PC through the serial port. I can show the data in a TextBox, but when I try to plot the data, it doesn't work (I don't know how to do it). I just can plot the data when is not a matrix and it's data from just one sensor. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using

Plot chart using values from richTextBox C#

孤街醉人 提交于 2019-12-12 01:51:49
问题 is it possible to plot graphs of data that are collected from a richTextBox? For example I have following text in richTextBox: $GPRMC,152908.00,A,5307.0794359,N,02308.8918827,E,0.049,188.6,280612,0.0,E,D*3A $GPRMC,152909.00,A,5307.0794307,N,02308.8918792,E,0.081,193.3,280612,0.0,E,D*3A $GPRMC,152910.00,A,5307.0794343,N,02308.8918811,E,0.034,42.9,280612,0.0,E,D*0F $GPRMC,152911.00,A,5307.0794410,N,02308.8918827,E,0.099,1.3,280612,0.0,E,D*30 $GPRMC,152912.00,A,5307.0794461,N,02308.8918808,E,0

SpagoBI: create a dynamic chart using SpagoBI

ε祈祈猫儿з 提交于 2019-12-12 01:50:01
问题 I am starting with SpagoBI, I managed to display a static chart using Highchart, what I want to do is a dynamic chart means if my data set is updated I want my chart to be updated as well, without manually refreshing the web page. like the example under this link [1] I used SpagoBi studio to deploy the chart, I tested the option of "refresh Seconds" (I edited to 1 second) while deploying but it is not working. How can I do that? Update: the chart template: <HIGHCHART width="100%" height="100%

VBA Prevent Charts from AutoUpdating in Excel

泄露秘密 提交于 2019-12-12 01:46:37
问题 I have a button to import data into my spreadsheet. I ported the calculated values for visuals outside of the dashboard range and plotted charts linking to those values. Whenever I import new data, those values change instantly as well as the charts. Is it possible to prevent the charts from automatically updating, and move that command to a macro? Thanks, 回答1: There is no way to delay/defer updating the visuals of a chart, even if you disable calculation, the charts will refresh when its

Google Visualization Charts API - Changing Highlight Color of Explorer Function on Line Chart

巧了我就是萌 提交于 2019-12-12 01:42:49
问题 I'm using the Google Visualization API to generate some charts on a webpage and want to make use of the 'Explorer' option to allow users to zoom in on areas of Line Charts. The charts are working fine (see fiddle below) but I'd like to change the highlight color of the box created when dragging to zoom. The default is a very distinctive Google-ish Blue: I've currently set the parameters of the Explorer object as detailed below, but the "Line Chart Reference" doesn't mention a property that

dojox chart update/destroy does not work after dojo.byId

隐身守侯 提交于 2019-12-12 01:39:25
问题 I created a dojo chart using; var pieChart = new dojox.charting.Chart2D("pieChart"); Afterwards I want to update/destroy this chart. SO I do; var pieChart = dojo.byId("pieChart"); pieChart.destroy(); This seems to be not functional. Am I doing something wrong here? best 回答1: As you're using dojox so dojo.byId will not return javascript object try using dijit.byId I think it'll work as suggested below: var pieChart = dijit.byId("pieChart"); pieChart.destroy(); the same problem I was facing

ToolTip only shows on “Click”- google charts

和自甴很熟 提交于 2019-12-12 01:38:41
问题 Friends, After several hours of searching for an answer I am unable to fix my problem. I am working with latest jQuery and Google's API visualizations. On page load, the ColumnChart renders properly. When you mouseover the bars it shows a hover-ish event being detected (highlighting of the edges - showing that mouseover is working). However, it doesn't show the tooltip box with the information. Now when you click on the bar, the tooltip DOES appears. I never had this problem before. I thought