charts

How can I change charts generated by apache poi to not use smoothed lines and show empty cells as gaps?

℡╲_俬逩灬. 提交于 2019-12-31 02:37:27
问题 I am using POI 3.12-beta1 and have code that creates a line chart with multiple datasets and named series in the legend. However, the default settings for line charts in poi generate a line that has been smoothed over the data points. Empty values are also being plotted as 0, but we want the lines to stop at the first column where there is an empty cell. I can go into the chart properties once it is rendered in an xlsx file and change these settings, but we need to have the xlsx rendered with

How to hide highChart plotLine label until mouseover?

♀尐吖头ヾ 提交于 2019-12-31 02:13:26
问题 http://jsfiddle.net/leongaban/n36y336z/ I have a plotline series on my highChart which has a label. What I'm trying to do is hide the label until mouseover. Has anyone attempted this before? $(function() { var $report = $('#report'); $('#container').highcharts({ xAxis: { plotLines: [{ // mark the weekend color : 'rgba(254,235,236,0.5)', from : Date.UTC(2010, 0, 2), to : Date.UTC(2010, 0, 3), zIndex: 1, label: { text : 'Event', align : 'left', style : { color: '#000' }, visible : false },

How can I add different colors to bar in Column chart

我只是一个虾纸丫 提交于 2019-12-30 23:58:40
问题 How can i add different colors to Bars in Column chart. Adding colors field in option is not working. Please help. Below is the code snippet: tdata.addRow([col1, arr[0].Manual]) tdata.addRow([col2, arr[0].Auto]); tdata.addRow([col3, arr[0].Amount]); options = { fontSize: 12, height: 430, width: 380, chartArea: { left: "25%", top: "20%", right: "5%", bottom: "10%" }, backgroundColor: '#f5f5f5', title: 'Project', pieSliceText: 'value', colors: ['red', 'green', 'blue'], 'is3D': true }; var chart

How do I correctly update my chart values? (In real time)

拈花ヽ惹草 提交于 2019-12-30 22:52:58
问题 I recently encountered a tool called LiveChart and decided to test it out. Unfortunately I've been having some problems figuring out how to update the chart values in real time. I'm pretty sure there's a clean and correct way of doing it, but I can't seam to find it. I would like to be able to update the values through a private void or button. In my code I'm testing it out with a ToolStripMenu. [CODE]: using System; using System.Collections.Generic; using System.ComponentModel; using System

How to change chart background with MPAndroidChart library?

人走茶凉 提交于 2019-12-30 17:58:21
问题 I'm using the amazing library MPAndroidChart. It works like a charm, except when I'm trying to change the background color of the BarData. Default color is white, and I want to change it to Transparent. I've tried this : Paint p1 = mChart.getPaint(Chart.PAINT_GRID_BACKGROUND); p1.setColor(Color.RED); and this: <com.github.mikephil.charting.charts.BarChart android:id="@+id/chart1" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color

How to move x-axis grids on chart whenever a data is added on the chart

喜夏-厌秋 提交于 2019-12-30 11:53:49
问题 // gridlines are not moving along as the line point changes. what code should I add to make it look like the cpu performance chart? Series test1 = new Series(); Series test2 = new Series(); private void Form1_Load(object sender, EventArgs e) { test1.Color = Color.Blue; test1.ChartType = SeriesChartType.FastLine; test1.BorderWidth = 2; test2.Color = Color.Red; test2.ChartType = SeriesChartType.FastLine; test2.BorderWidth = 2; chart1.Series.Add(test1); chart1.Series.Add(test2); chart1

How to put a logarithmic scale with rows represented in logarithm on chart in C # [duplicate]

情到浓时终转凉″ 提交于 2019-12-30 11:14:58
问题 This question already has an answer here : Logarithmic Vertical and Horizontal Axes lines in MS Chart Control (1 answer) Closed 2 years ago . I'm developing a chart in C # and I need the graph lines to be represented in logarithm, the scale can already put, just missing the vertical lines in logarithmic scale according to the image below: My chart currently looks like this: 回答1: Update: To get those additional lines between the periods you need to turn on the MinorGrid for the x-axis of your

How to construct a chart from a table?

自闭症网瘾萝莉.ら 提交于 2019-12-30 10:03:04
问题 Good day! Very grateful for any help! How to write a script (php or javascript) which will work as a constructor of charts, where input values ​​are the values ​​from the table, which is derived from the database to the page? The input data in the chart will be data from MS SQL tables. (Displayed on the html page. The script does not query the database, it just takes the passed array.) The input data in the script to be displayed next to the checkbox. A Select is made by marking different

How to construct a chart from a table?

a 夏天 提交于 2019-12-30 10:02:09
问题 Good day! Very grateful for any help! How to write a script (php or javascript) which will work as a constructor of charts, where input values ​​are the values ​​from the table, which is derived from the database to the page? The input data in the chart will be data from MS SQL tables. (Displayed on the html page. The script does not query the database, it just takes the passed array.) The input data in the script to be displayed next to the checkbox. A Select is made by marking different

Width of error bars in ggplot2

百般思念 提交于 2019-12-30 08:02:29
问题 I have some data with standard errors associated and would like to display these with error bars. That's what I have: # generate some data hod <- data.frame(h = c(1:24,1:24,1:24), mean = 1:(24*3) + runif(24*3, 0, 5),ci = runif(24*3, 0, 2), t = c(rep("a",24),rep("b",24),rep("c",24))) pd <- position_dodge(0.3) dayplot <- ggplot(hod, aes(x=h, y=mean, colour=as.factor(t),group=as.factor(t))) + geom_line(position=pd, size=1) + geom_errorbar(aes(ymin=mean-ci, ymax=mean+ci), width=1, size=0.5,