charts

Highcharts: Pie chart label overlap

那年仲夏 提交于 2021-01-28 02:47:10
问题 I have this pie chart: http://jsfiddle.net/gXjVY/ And as you can see, the data labels of the charts are overlapping. I tried to define the distance: -1 inside a serie, but it doesn't work. Anybody an idea, how I can define different positions, or distances for the series? 回答1: You can set for series, not for a point, different distances, see: http://jsfiddle.net/gXjVY/3/ series: [{ data: [...], dataLabels: { distance: -30 } }] 来源: https://stackoverflow.com/questions/16295279/highcharts-pie

Google Column Charts with Groups

自闭症网瘾萝莉.ら 提交于 2021-01-27 19:44:12
问题 My data format - ['Group','Count','Month','Year'], ['A',10,'February',2015], ['B',8,'February',2015], ['C',15,'February',2016] I will be using a filter to display data for each month separated by Group column. X-axis will have Groups. Y-Axis will have Counts for both all years (2014, 2015, 2016...). Something like this I am using Google Dashboard for this. My code- var dashboard = new google.visualization.Dashboard(document.getElementById('dashboard4_div')); var slider = new google

Google Charts Change color of X-Axis Font for Timelines

寵の児 提交于 2021-01-27 13:16:30
问题 I have a google chart and need to change the font color of the x-axis (this is the time axix) to White so as to contrast with the background I have: I have tried hAxis: {textStyle:{color: '#FFF'} <DIV> <p><U><font face="verdana" size="6" color="#CCCCCC">Thursday</font></U></p> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load("current", {packages:["timeline"]}); google.charts.setOnLoadCallback(drawChart);

MPAndroidChart - How to change the color of PieChart center Background?

三世轮回 提交于 2021-01-27 07:09:47
问题 Im trying to use the MPAndroidChart library to develop a circular chart. But only Pie chart is available. So i tried giving two xvalue coordinates, with one color similar to background. So i got something similar to circular chart. But i'm not able to change the background color and font color of center text inside the pie chart? Thanks! 回答1: There are two possible solutions: Retrieve the Paint object used by the chart to draw the "center-hole" and modify it the way you want Paint p1 = mChart

Chartsjs multi-axis, make the scale appear/disappear when the dataset is activated/deactivated

匆匆过客 提交于 2021-01-27 06:36:53
问题 I'm using charts.js . This is my chart: I have 3 or more datasets in the same chart, each with a different scale, let's image that all the scales are on the left. As default when deactivating a dataset (for example in this case clicking on "Sold Products") the scale is rescaled between [-1, +1] as here on multi-axis demo code too. Is there a way in which I can make disappear the dataset's scale when that dataset is deactivated? For example in this case if I deactivate "Sold Products", I would

Chartsjs multi-axis, make the scale appear/disappear when the dataset is activated/deactivated

余生长醉 提交于 2021-01-27 06:35:46
问题 I'm using charts.js . This is my chart: I have 3 or more datasets in the same chart, each with a different scale, let's image that all the scales are on the left. As default when deactivating a dataset (for example in this case clicking on "Sold Products") the scale is rescaled between [-1, +1] as here on multi-axis demo code too. Is there a way in which I can make disappear the dataset's scale when that dataset is deactivated? For example in this case if I deactivate "Sold Products", I would

Adding labels to pie chart in R… Radiating “spokes”?

做~自己de王妃 提交于 2021-01-27 06:23:24
问题 Is there a way (using ggplot or some other package maybe) to angle the labels of a pie chart in R? For example, this code (using R defaults): data <- c(4,9,2,5) names <- c("alpha","beta","gamma","delta") pie(data,names) Creates this pie chart: What I want is a pie chart like this (which I created very roughly in PhotoShop): 回答1: As @agstudy pointed out, you need to modify the body of the function to create your own pie function. Indeed, pie does not return any value so you don't know where

R Plotly: How to set the color of Individual Bars of a Waterfall Chart in R Plot.ly?

别说谁变了你拦得住时间么 提交于 2021-01-23 06:11:53
问题 I am trying to change the color of the individual bars of a waterfall chart using R Plotly. More specifically the first and the last bar, I want it to be blue and yellow respectively. So in the below graph, Group 1 has to be blue and Group 2 has to be yellow. R Plotly Waterfall chart seems to only have the option to set three colors for increasing, decreasing and total bars. Here is the code used to generate the above graph: library(plotly) df <- data.frame(Rank = 1:7, Variable = c("Group 1",

How to set diffent style to single line graph in MPAndroidChart?

强颜欢笑 提交于 2021-01-22 08:46:36
问题 Hello am using MPAndroiChart for my Android App I stuck with a requirement where I have to draw a line chart(a single line) with different style. Some part of the line is straight and some part is dotted. Something like this ________...........__________________...______ Is it possible to do in MPAndroidChart? 回答1: Yes, call lineDataSet.enableDashedLine(...) Documentation: https://github.com/PhilJay/MPAndroidChart/wiki/DataSet-classes-in-detail 来源: https://stackoverflow.com/questions/33011210

How to show only 24hr column in line chart?

99封情书 提交于 2021-01-05 08:39:17
问题 I'm working with chart-ios library and i manage to show data in graph like below image. My Json data is like below. i showing field1+field2+field3 in X and created_at in y axis. this data is for 1 day. [ { "created_at": "2020-05-10T00:01:09Z", "field1": 17.57, "field2": 56.37, "field3": 44.06, "equipment": 3 }, { "created_at": "2020-05-10T00:01:55Z", "field1": 17.57, "field2": 54.52, "field3": 44.62, "equipment": 3 }, { "created_at": "2020-05-10T00:02:40Z", "field1": 21.63, "field2": 52.7,