charts

How to draw candle charts in C#

一个人想着一个人 提交于 2019-12-23 07:47:14
问题 How can I draw candle charts in C#? Does anybody has any examples with a nice interface? 回答1: I've used the MSChart and found it to be pretty good. It supports candlestick charts. I've used ZedGraph as well but found a few graphical anomalies showed up on my charts but they were otherwise good as well. 回答2: I use this for stock data but its in VB With Chart1.ChartAreas("myarea") .AxisY.Maximum = (Math.Ceiling((HighValue * 100)) / 100) .AxisY.Minimum = (Math.Floor((LowValue * 100)) / 100)

Google Chart loads extremely small when included in jQuery-based tabs

谁都会走 提交于 2019-12-23 07:27:42
问题 I am using Google's line chart almost exactly as the demo - only the data has changed - inside of this jQuery tab plugin with no modification. Maybe 50% of the time, the chart will load at 400x200 even though it has been specified to load at 700x250. The containing div will have the proper width and height, but the chart as rendered by the API will load inside of that at 400x200. I suspect this is because the tabs aren't being displayed when the API tries to render. Because of that, it tries

Creating an asinh (inverse hyperbolic sine) scale in d3.js v4

两盒软妹~` 提交于 2019-12-23 07:26:37
问题 This would be a replacement for a log scale so that it can deal with negative numbers. Haven't seen many examples of custom scales though I've been trying to use d3's logarithmic scale's source as a starting point. 回答1: As far as I know there are no ways to make custom scales in D3 (at least not in the sense you are looking for). All D3 scales scale in two steps: using the domain, deinterpolate the input given a deinterpolation function using the range, interpolate the intermediate result

MPAndroidChart set center vertical line

会有一股神秘感。 提交于 2019-12-23 07:20:13
问题 I want to set a vertical line in center of LineChart like this: When scrolling to each point, it can notify to change the date below (the orange date field). And it can move left or right programmatically by click on arrow button. Currently, I can set viewport and allow moving to center with this code: LineData data = new LineData(xVals, dataSets); mChart.setScaleMinima((float) data.getXValCount() / 7f, 1f); mChart.moveViewTo(0, 7, YAxis.AxisDependency.LEFT); And get the result: How can I

Assigned independent axis cannot be used. This may be due to an unset Orientation property for the axis.in wpf chart c#

无人久伴 提交于 2019-12-23 05:40:30
问题 I want implement rotation and interval of axis label on x axis with LinearAxis in code behind. lineSeria = new LineSeries(); linAxis = new LinearAxis(); linAxis.Orientation = AxisOrientation.X; linAxis.Location = AxisLocation.Bottom; linAxis.Interval = 10; var xLabel = new Style(typeof(AxisLabel)); var rotation = new Setter(AxisLabel.RenderTransformProperty, new RotateTransform() { Angle = -90, CenterX = 50, CenterY = 1 } ); xLabel.Setters.Add(rotation); linAxis.AxisLabelStyle = xLabel;

How to draw legend as a table with JFreeCharts?

大城市里の小女人 提交于 2019-12-23 05:25:58
问题 I'm able to plot this chart like this: But I want to plot it like this, which means at the bottom of the chart and as a table (at least look like one). Here is my code: package charts; import java.awt.*; import java.io.*; import org.jfree.chart.ChartUtilities; import org.jfree.chart.ChartFactory; import org.jfree.chart.JFreeChart; import org.jfree.chart.block.BlockBorder; import org.jfree.chart.labels.PieSectionLabelGenerator; import org.jfree.chart.labels.StandardPieSectionLabelGenerator;

Multiple y-axis background colors for chart

依然范特西╮ 提交于 2019-12-23 05:15:58
问题 How can I create a background for a chart that looks like this? It's got different background colors at certain % levels that correspond to the status. All I see in ChartArea is BackColor , BackSecondaryColor , and BackGradientStyle which won't do this. This image was taken from an SSRS report and I am trying to recreate it using C# and the Microsoft charting library. I am pretty sure SSRS uses the same library so it should be possible - I just don't know how. 回答1: You can achieve this by

How to Install CorePlot SDK

非 Y 不嫁゛ 提交于 2019-12-23 04:57:20
问题 I want to create a chart application. I read that CorePlot can be used to do this, but I don't know where may I go to download the CorePlotSDK, and how or where to install it. I also read the procedure for installing the CorePlotSDK but I'm not clear about that. Please explain the downloading and installing procedure. Also explain the frameworks that I want to include and that purpose. 回答1: The project is hosted here. Follow the instructions there to download it, then maybe tell us any issues

dynamic height of chart of highchart

孤人 提交于 2019-12-23 04:45:44
问题 It is necessary to automaticly and dynamicly change (update) the height of highcharts's charts depending on the amount rows (example, for horizontal bars) on it. The height of one element (example, horizontal bar) is constant (for example, 20px). The height of charts with X elements set automaticly (~ 20px * X). 回答1: You can do this with a little pre-setup. Set variables for: the top and bottom margins the point and group padding the width of the points the number of data points in your data

VBA: Formatting Multiple Selected Charts

烈酒焚心 提交于 2019-12-23 04:41:04
问题 I am looking to format multiple selected charts on Excel 2010 using VBA. The code below works when only one chart is selected but when multiple charts are selected, I get a "run-time error '91' Object variable or With Block variable not set". Any idea how to run the macro for number of selected charts? Sub ChartFormat5_Click() ''Adjust chart area 'Size Selection.Width = 631.9 Selection.Height = 290.1 'Border With Selection.Format.Line .Visible = msoTrue .ForeColor.ObjectThemeColor =