pie-chart

Changing line properties in matplotlib pie chart

心已入冬 提交于 2020-07-18 10:31:39
问题 I'm trying to make the lines on my matplotlib pie chart much lighter. Because I have so many slices, the lines are way too thick, as shown here: I read this example which suggests using rcparam like this: matplotlib.rcParams['text.color'] = 'r' matplotlib.rcParams['lines.linewidth'] = 2 but although I can change the text color, it doesn't change the width of the lines between the pie slices. I believe that's because the slices aren't governed by line objects but by wedge objects. So is there

Laravel:Trying to generate pdf with charts but on generated pdf charts are not showing

送分小仙女□ 提交于 2020-06-29 07:12:14
问题 I have installed laravel 5.6 and and installed barryvdh/laravel-dompdf package. I have used some jquery chart plugin to show chart on blade file, it's works fine. By using dompdf package , I am trying to shown this piechart on pdf, but chart's are not showing on pdf. How to show charts on pdf, Is there any solution to show charts on streaming/download pdf.? The chart plugin/library shows the following chart when viewing on blade file: What I am trying is to show this chart on streaming

How to plot a nested pie chart using plotly in R?

岁酱吖の 提交于 2020-06-26 05:34:39
问题 I am trying to plot a nested pie chart, but the output didn't reflect the reality. Let's say: library('plotly') library('dplyr') data <- data.frame(c('cat', 'dog', 'deer','chicken', 'cat', 'dog','duck', 'monkey', 'fish','cow','horse','dog'),c('US', 'US', 'US','US', 'UK', 'UK','UK', 'UK','China','China','China','China'),c(15,70,120,55,47,300,89,62,40,27,103,8)) colnames(data) <- c('animal', 'country', 'total_num') p <- plot_ly(data) %>% add_pie(labels = ~animal, values = ~total_num, type =

How to plot a nested pie chart using plotly in R?

一世执手 提交于 2020-06-26 05:33:29
问题 I am trying to plot a nested pie chart, but the output didn't reflect the reality. Let's say: library('plotly') library('dplyr') data <- data.frame(c('cat', 'dog', 'deer','chicken', 'cat', 'dog','duck', 'monkey', 'fish','cow','horse','dog'),c('US', 'US', 'US','US', 'UK', 'UK','UK', 'UK','China','China','China','China'),c(15,70,120,55,47,300,89,62,40,27,103,8)) colnames(data) <- c('animal', 'country', 'total_num') p <- plot_ly(data) %>% add_pie(labels = ~animal, values = ~total_num, type =

d3v4 hybrid dougnut and bubble chart — but the bubbles aren't working?

独自空忆成欢 提交于 2020-06-13 11:47:57
问题 I'm trying to convert and old d3v3 hybrid chart -- but the bubble chart elements are not working? d3v3 - https://jsfiddle.net/jfxoy7wr/ d3v4 example v4 https://jsfiddle.net/30odhpft/ this bubble chart code - is currently commented out - it was reporting an error loading in the d3.pack()? var bubble = d3.pack() .size([diameter, diameter]) .value(function(d) { return d.value; }) .padding(3); //_create bubble var data = bubbledata(data); var node = svg.selectAll(".node") .data(bubble(nodes)

d3v4 hybrid dougnut and bubble chart — but the bubbles aren't working?

我的未来我决定 提交于 2020-06-13 11:46:20
问题 I'm trying to convert and old d3v3 hybrid chart -- but the bubble chart elements are not working? d3v3 - https://jsfiddle.net/jfxoy7wr/ d3v4 example v4 https://jsfiddle.net/30odhpft/ this bubble chart code - is currently commented out - it was reporting an error loading in the d3.pack()? var bubble = d3.pack() .size([diameter, diameter]) .value(function(d) { return d.value; }) .padding(3); //_create bubble var data = bubbledata(data); var node = svg.selectAll(".node") .data(bubble(nodes)