charts

Stacked Area Amchart passing dynamic data

社会主义新天地 提交于 2020-01-15 08:38:28
问题 **The reference - https://www.amcharts.com/demos/stacked-area/ It only plots one single user on y axis whereas I want all users data in stacked line area. I guess I need to create a function on data series, but really don't know how to do that. I want X axis to be Date , Y axis to be value scale showing multi-line users [A,B,C,D] ** < script > var df = [{ "User": "A", "Date": 1570492800000, "value_act": 3.4 }, { "User": "B", "Date": 1570492800000, "value_act": 1.6 }, { "User": "C", "Date":

Charting duration of time

别说谁变了你拦得住时间么 提交于 2020-01-15 08:13:16
问题 I'm fairly certain from the reading I did prior to this post that a Gantt chart is what I will need to create, however I don't know if that is the correct route or not. Need to plot data of start and end times as one unit on an Excel chart, with date on the Y-axis and hour of day on the X axis. The format of the start and end times are Excel numbers which is adding another curveball into the mix. 回答1: If the chart below is of the type you require: then I'd suggest choosing a Stacked Bar

Charting duration of time

会有一股神秘感。 提交于 2020-01-15 08:09:18
问题 I'm fairly certain from the reading I did prior to this post that a Gantt chart is what I will need to create, however I don't know if that is the correct route or not. Need to plot data of start and end times as one unit on an Excel chart, with date on the Y-axis and hour of day on the X axis. The format of the start and end times are Excel numbers which is adding another curveball into the mix. 回答1: If the chart below is of the type you require: then I'd suggest choosing a Stacked Bar

Start bar-chart at 0 using ChartJS

可紊 提交于 2020-01-15 07:03:31
问题 I have a bar chart which use ChartJS that shows data. Based on the bar chart, I have the data: 15, 2, 0, 11 . I can see all of these data in the bar, except 0. Is there a possibility to start the bar chart on 0, so I can also see the data for the fourth column in the bar chart? options: { legend: { display: false }, scales: { yAxes: [{ display: false, }], xAxes: [{ display: true, }], }, title: { display: false, } } 回答1: After hours of working, finally i found a soulution. There is no chartjs

Start bar-chart at 0 using ChartJS

丶灬走出姿态 提交于 2020-01-15 07:01:29
问题 I have a bar chart which use ChartJS that shows data. Based on the bar chart, I have the data: 15, 2, 0, 11 . I can see all of these data in the bar, except 0. Is there a possibility to start the bar chart on 0, so I can also see the data for the fourth column in the bar chart? options: { legend: { display: false }, scales: { yAxes: [{ display: false, }], xAxes: [{ display: true, }], }, title: { display: false, } } 回答1: After hours of working, finally i found a soulution. There is no chartjs

how to generate piechart using apache poi 4.0 XDDFChartData, XDDFPieChartData; in excel sheet using java, i dont want to use jfree

北城以北 提交于 2020-01-15 05:41:28
问题 I need a sample code in Java, currently I am able to draw line charts after reading values from sheet, and I also want to generate pie chart. Example code I have tried which is for .ppt format. I want the same in excel for pie chart in java. String[] categories = listCategories.toArray(new String[listCategories.size()]); Double[] values = listValues.toArray(new Double[listValues.size()]); final int numOfPoints = categories.length; final String categoryDataRange = chart.formatRange(new

how to generate piechart using apache poi 4.0 XDDFChartData, XDDFPieChartData; in excel sheet using java, i dont want to use jfree

一笑奈何 提交于 2020-01-15 05:41:12
问题 I need a sample code in Java, currently I am able to draw line charts after reading values from sheet, and I also want to generate pie chart. Example code I have tried which is for .ppt format. I want the same in excel for pie chart in java. String[] categories = listCategories.toArray(new String[listCategories.size()]); Double[] values = listValues.toArray(new Double[listValues.size()]); final int numOfPoints = categories.length; final String categoryDataRange = chart.formatRange(new

Chart.js How to set line height only to the points?

泄露秘密 提交于 2020-01-15 05:07:47
问题 How to set line height only until points? I have used 'gridLines: display:false' but it hides all lines. Here on image below how it should be 回答1: It's not a native option in Chart.js but you can implement it yourself via plugin. See the annotations in the below code. new Chart(document.getElementById('chart'), { type: 'line', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [{ label: 'series 1', data: [0, 2, 4, 3, 1, 0] }] }, options: { maintainAspectRatio: false, scales: { xAxes: [{ gridLines:

Chart.js How to set line height only to the points?

杀马特。学长 韩版系。学妹 提交于 2020-01-15 05:07:13
问题 How to set line height only until points? I have used 'gridLines: display:false' but it hides all lines. Here on image below how it should be 回答1: It's not a native option in Chart.js but you can implement it yourself via plugin. See the annotations in the below code. new Chart(document.getElementById('chart'), { type: 'line', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [{ label: 'series 1', data: [0, 2, 4, 3, 1, 0] }] }, options: { maintainAspectRatio: false, scales: { xAxes: [{ gridLines:

dc.js / d3.js - How to hide a bar chart x-axis category value if its bar value equals zero?

感情迁移 提交于 2020-01-15 02:32:37
问题 I know this question has been asked before, but I have not found an answer that works for me. I looked into https://github.com/dc-js/dc.js/wiki/FAQ#filter-the-data-before-its-charted and tried the remove_empty_bins function but nothing changed. I also tried the filter_bins function but I am getting the error message "f is not a function". I am working on a dashboard. I want the bar charts to update such that the x-axis categories are removed from the graph when they are zero and will reappear