charts

How to view the last 10 DataPoints in a chart that's updating each second?

眉间皱痕 提交于 2020-01-03 13:35:11
问题 I have this code: private void timer_Tick(object sender, EventArgs e) { timer.Stop(); for (int i = 0; i < TOTAL_SENSORS; i++) { DateTime d = DateTime.Now; devices[i].Value = float.Parse(serialPort.ReadLine()); if (chart1.Series[i].Points.Count > MAX_POINTS) { //see the most recent points } chart1.Series[i].Points.AddXY(d, devices[i].Value); } timer.Start(); } This part of my code is the timer's tick event where i draw a chart and i need to update it every tick.I keep adding points and when

disable wpftoolkit chart datapoint

痞子三分冷 提交于 2020-01-03 11:19:12
问题 Does anybody know how to turn off the datapoints for a noraml LineSeries in a WPFToolkit chart? I find them to be very annoying, and not useful to my purposes, but I can't find a simple property or anything like that on the class itself. 回答1: You want to hide them? It is possible if to set the empty ControlTemplate to the Template property. Here is the example: <Window.Resources> <Style x:Key="InvisibleDataPoint" TargetType="{x:Type charting:DataPoint}"> <Setter Property="Background" Value=

Use 2 data sets in one chart in SSRS

杀马特。学长 韩版系。学妹 提交于 2020-01-03 08:58:10
问题 Is it possible to have 2 data sets and display the data for them in one chart on an SSRS report or will I need to combine the data sets? I have number of calls answered in one dataset and number of calls missed in another and want to show them both in a graph. The data is held in different areas which is why I didn't create it in one data set to start with. 回答1: This may not work for all types of charts, and does require your datasets to be constructed with common axis values: Select the

generate server-side google charts as images

耗尽温柔 提交于 2020-01-03 08:29:08
问题 I've just started using the (new) Google Charts api and its pretty cool. I'm successfully creating charts using this api. I have a throughput challenge however. In my application I generate three charts from real-time data I'm pulling down from NOAA. The time it takes to get the data, massage it into chart form and then draw the chart client-side is an intolerably slow user experience. So my thought was to generate the chart periodically (every 15-30 min) on the (hosted) server and then just

Using CocoaPods for the “Charts” framework. Swift 2

旧巷老猫 提交于 2020-01-03 06:04:07
问题 I am a newbie when it comes to CocoaPods so please bear with me! I am looking at the tutorial (https://www.raywenderlich.com/97014/use-cocoapods-with-swift) however this is using the dependency "pod 'Alamofire', '2.0.2'". I have looked online for over a hour now and I can't find what to use for the Charts framework (https://cocoapods.org/?q=charts). So Far i have done the following steps: 1. sudo gem install cocoapods and got the following output: 2. pod setup --verbose and got the following

Creating chart from datagridview C#

痞子三分冷 提交于 2020-01-03 05:50:23
问题 Good day, i have a little problem. I'm trying to make chart from dataGridView so i wrote short code. private void create_graphs_Click(object sender, EventArgs e) { Chart chart1 = new Chart(); chart1.Series[0] = new Series(); chart1.Series[0].XValueMember = dataGridView1.Columns[0].DataPropertyName; chart1.Series[0].YValueMembers = dataGridView1.Columns[1].DataPropertyName; chart1.DataSource = dataGridView1.DataSource; chart1.Series[0].ChartType = SeriesChartType.Line; chart1.SaveImage("chart

Set a Chart series source to a named range via Macro

删除回忆录丶 提交于 2020-01-03 05:46:30
问题 I have a sheet with a existing chart and the proper dynamic named ranges to feed that chart the right data. My problem comes that the sheet is a template that is copied and the copies' charts don't point to the named ranges anymore. The named ranges get copied to the sheet (the ranges are sheet specific) so it seems like it should be a matter of just updating the series source data. Good old record gave me the following syntax when I recorded doing that manually: ActiveChart.SeriesCollection

How to superimpose bar plots in R?

こ雲淡風輕ζ 提交于 2020-01-03 05:38:07
问题 I'm trying to create a figure similar to the one below (taken from Ro, Russell, & Lavie, 2001). In their graph, they are plotting bars for the errors (i.e., accuracy) within the reaction time bars. Basically, what I am looking for is a way to plot bars within bars. I know there are several challenges with creating a graph like this. First, Hadley points out that it is not possible to create a graph with two scales in ggplot2 because those graphs are fundamentally flawed (see Plot with 2 y

Using google charts (bars), can I make de bar color linear gradient?

依然范特西╮ 提交于 2020-01-03 05:17:08
问题 I'm using a bar chart and I need that the bars to be gradient rather than solid colors.In the code, you can see that I add "role: style" and after a solid color, but I need that the to have a linear gradient. function drawChart2() { var data = google.visualization.arrayToDataTable([ ["Element", "Difference", { role: "style" }], ['Mg', 1.2 , "#1aab54"] ]); var view = new google.visualization.DataView(data); view.setColumns([0, 1, { calc: "stringify", sourceColumn: 1, type: "string", role:

achartengine - adding External ImageButtons for zoom on view next to chart causes strange UI behavior

非 Y 不嫁゛ 提交于 2020-01-03 04:50:28
问题 I wanted to have Button on the view on the top of my chart view. PROBLEM: When I press the Button the clone of chart view appears squeezed at the back of pressed button.It is there for only one second and then disappears. Look at the print screen... image link Does anybody have a clue why this happens? I'm attaching dummy source code: layout (main.xml): <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill