charts

How Align the Legend Items in Chart.js 2?

萝らか妹 提交于 2019-12-14 03:45:02
问题 I just need to align the Chart Legend so it don't look too messy as the default shows, here is an example what I'm trying to achieve: Please give some code suggestions: https://jsfiddle.net/holp/68wf75r8/ new Chart(document.getElementById("field-0"), { type: 'pie', data: { labels: ["Chat", "Prospeção", "Whatsapp", "Trial", "Site", "Telefone", "E-mail", "Evento"], datasets: [{ data: [700, 400, 200, 150, 80, 50, 20, 10], borderWidth: 2, hoverBorderWidth: 10, backgroundColor: pieColors,

ng-click not working with chart.js

喜夏-厌秋 提交于 2019-12-14 03:43:18
问题 I created a pie chart with chartjs , but when I click on a specific slice, the click event is not taken. View: <div ng-controller="ProjectsController"> <a>Projects</a> <br> </br> <canvas id="myPieChart" width="600" height="600" ng-click="chartClick()"></canvas> Controller: 'use strict'; angular.module('Progs') .controller('ProjectsController', ['$scope', '$rootScope', '$http', '$window', '$state', function ($scope, $rootScope, $http, $window, $state) { //... $scope.chartClick = function

JFreeChart XY-chart that refreshes with new set of data? Example?

核能气质少年 提交于 2019-12-14 03:42:47
问题 I want to learn how to learn how to create some charts with jfreechart and googlefor some examples. but I couldn't find what I need. This here is good http://www.java2s.com/Code/Java/Chart/CatalogChart.htm but doesn't have a refreshing graph with new displayed values. I would like to redraw a chart every nth seconds because I update an external dile witha set of values I want to display here. So how do I tell jfreechart to refresh the drawn graph and display it onthe canvas? Thanks in advance

MS Chart connecting all datapoints without lines crossing [closed]

一世执手 提交于 2019-12-14 03:31:27
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I have datapoints in a MS chart and I would like to connect all these datapoints with lines, where none of the lines cross each other. Each datapoint will be connected to 2 other datapoints. The plot should look like a closed loop, it is very important that there will be no lines

DOJO addSeries method in a loop ploting a graph with commulative sum

◇◆丶佛笑我妖孽 提交于 2019-12-14 03:24:25
问题 While creating a dynamic stacked Line chart in Dojo, i use Chart object's addSeries() method with response (JSON array). here for a while i am using two static data arrays. When addSeries method invocations, the charts get created with their commulative sum. That is not actual data of the graph. Here whats wrong with the addSeries method, not ploting the actual data. hare the data array is: var DataArr = new Array ( [20, 30, 30, 30, 30, 45, 50, 0, 30, 119.2, 47.04, 0], [20, 30, 30, 64, 20, 50

Morris donut chart - extract label into items

余生长醉 提交于 2019-12-14 03:14:37
问题 I'm currently running into a problem using the morris donut chart. In general, my project is required to be available on both touch devices as well as standard devices. We have set the donut chart up so that clicking on one section links you to another page which filters content based on which section you clicked. This one is working like a charm - but not on mobile devices. As hovering brings up the description of the section (in our case a priority plus how many items with that specific

How to plot TEMA indicator with Microsoft Chart Control

谁都会走 提交于 2019-12-14 02:58:32
问题 I've added two series: Series1 (CandeleStick), Series2 (Line). I've added points and the FinancialFormula: public Form1() { InitializeComponent(); chart1.Series[0].Points.Add(24.00, 25.00, 25.00, 24.875); chart1.Series[0].Points.Add(23.625, 25.125, 24.00, 24.875); chart1.Series[0].Points.Add(26.25, 28.25, 26.75, 27.00); chart1.Series[0].Points.Add(26.50, 27.875, 26.875, 27.25); chart1.Series[0].Points.Add(26.375, 27.50, 27.375, 26.75); chart1.Series[0].Points.Add(25.75, 26.875, 26.75, 26.00);

How make a growth baby chart with data in mysql +PDO

烈酒焚心 提交于 2019-12-14 02:53:18
问题 I am trying to make a chart with growth baby table I have in DB... I lost the idea and right now I don't know how to do it... this is the chart I need to show when the doctor insert the height and weight of every child...need to show the inserted the percentiles data and that will depend of the height and weight of the baby to show the graph (gray line)... here is my code until now (EDITED WITH NEW CODE) : <?php include 'includes/configs.php'; /* * $normal is an array of (edad => peso) key

Rotating a donut chart in javascript after it is rendered

喜夏-厌秋 提交于 2019-12-14 02:36:25
问题 All, I have a request from my client to create a donut chart using high charts lib and then be able to rotate the donut along with the label by touch move event on mobile or a mouse move event on desktop after the graph is rendered. My client is using hammer.js, jquery and high charts. I am not sure how to go about getting the donut chart to rotate. Can anybody share some ideas/samples or know of other libraries that might already do this? Here's a high chart sample http://jsfiddle.net

highcharts column chart with line, need line start at bar start

非 Y 不嫁゛ 提交于 2019-12-14 02:22:08
问题 here is demo fiddel, need line chart start from first column left border to last column right border like image below in demo fiddel it is start for center of bars. here is my code of series or you can see in fiddel : series: [{ name: 'Rainfall', type: 'column', yAxis: 1, data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], tooltip: { valueSuffix: ' mm' } }, { name: 'Temperature', type: 'line', data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3,