charts

How can I update data in a chart in execution time (in C++ builder)?

空扰寡人 提交于 2019-12-12 02:44:50
问题 I'm using Borland C++ Builder to create this. The code is very simple because its only purpose, for now, is to help me learn how to use the TChart functions. I'll use what I learn to create a more complex program later. I have a series of numbers that must be shown on a memo box and on a chart. The values in the chart are displayed after the program finishes its exectuion, however, I need the values to be updated in real time - I mean, everytime the program calculates a new number, it must be

Rendering Ember component (google line chart) with rails backend

时光总嘲笑我的痴心妄想 提交于 2019-12-12 02:43:54
问题 Recently I started a project with rails backend and ember js, however I find the documentation on both together is difficult to find or quite ambiguous, however I have parts of my app working perfectly. Now, I decided to code a google line chart in an ember component. With ember inspector, it tends to throw an error on localhost:3000/#/chart currently the error: Uncaught Error: <Sample.ChartView:ember526> Handlebars error: Could not find property 'chart' on object (generated chart controller)

How can I display my high-chart correctly and import data?

喜欢而已 提交于 2019-12-12 02:39:15
问题 On my highchart how can I set the Y AXIS (dataItem) so that it will populate accordingly to amount of times a country appears in my json data. So in my snippet it should show GB as 66% instead of two 33%? Also what would be a good way to import my json data if I was to keep in in a separate file. Was thinking of keeping it in a separate file called (json_data.json). Please help. $(document).ready(function () { var json= [ { "Hot": false, "Country": "NETHERLANDS", "DomCountry": "NA",

JavaFX LineChart with many entrys

余生颓废 提交于 2019-12-12 02:37:02
问题 i want to display the cpu usage in a line chart. The Problem it, that if there are to many entrys i becomes confused. I tried to delete the first entry after X entrys but then the chart is not fully used. I want, that the line chart is filled with data but from begining to end. Example with many entrys and delet the first one Here is some example code: This is the Controller, where i create the series and start the Thread to update my data. public class FXMLDocumentController implements

stacked bar chart custom format

隐身守侯 提交于 2019-12-12 02:35:27
问题 I have a stacked bar chart in excel. This is made up of positive and negative comments. I can get the negative topic names down one side of the axis but can't work out how to get the positive down the right hand side of the chart? From the example attached I want the axis titles on both the left and right of the graph? I've been stuck on this for a few days and have researched this. Thank you in advance for any help! 回答1: What you can do is: Add a new series of data plotting a value of 0 for

.Cannot export chart as image in Primefaces?

雨燕双飞 提交于 2019-12-12 02:33:28
问题 I cannot export prime-faces chart as Image. categoryModel is same as Prime-show Case. Is it need dependency lib to export? <ui:composition xmlns="http://www.w3.org/1999/xhtml" ...... template="/common/commonLayout.xhtml"> <ui:define name="content"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script type="text/javascript"> //<![CDATA[ function exportChart() { //export image $('#output').empty().append(chart.exportAsImage()); //show the dialog dlg.show(); } //]]> <

I have an error about chart columns order

 ̄綄美尐妖づ 提交于 2019-12-12 02:33:14
问题 for(chr=0;chr<10;chr++) { //some definitions and calculations here chrisim[chr] = lst.Columns[chr].Text; chrdeger[chr] = ((temp1 + temp3) * 100) / chrdeger[chr]; if (chrisim[chr].Contains("/3")) chart15.Series["1.Çeyrek Net Kârı"].Points.AddXY(chrisim[chr], chrdeger[chr]); if (chrisim[chr].Contains("/6")) chart15.Series["2.Çeyrek Net Kârı"].Points.AddXY(chrisim[chr], chrdeger[chr] - temp); if (chrisim[chr].Contains("/9")) chart15.Series["3.Çeyrek Net Kârı"].Points.AddXY(chrisim[chr], chrdeger

WPF: why my Combobox SelectionChanged event is fired before my chart control created

China☆狼群 提交于 2019-12-12 02:29:26
问题 So i have application and another sub form: public partial class SubForm: MetroWindow... And here is how i am open my Sub form from my main form : SubForm subForm = new SubForm(); subForm.ShowDialog(); Inside my Sub form i have this chart control: <telerik:RadCartesianChart x:Name="chart" /> And Combobox : <ComboBox Name="cbInterfaces" ItemsSource="{Binding Path=(my:MyClass.MachineInterfaces)}" SelectedIndex="0" SelectionChanged="cbInterfaces_SelectionChanged"/> So i notice that after the Sub

C# - How do you make a chart object start at 0 on the X axis?

南笙酒味 提交于 2019-12-12 02:27:20
问题 I've been trying to set the position on the X axis from which the data starts getting plotted with no luck. It always start at 1 no matter what. I've tried doing chartArea.AxisX.Minimum = -1; chartArea.AxisX.Maximum = 5; But it doesn't work. Even if I do: chartArea.AxisX.Minimum = 3; chartArea.AxisX.Maximum = 6; The bars will be invisible rather than start at 3. manaCurveChart.ChartAreas[0].AxisX.IsStartedFromZero = true; Doesn't seem to do anything either. EDIT: Here's the code ChartArea

how to use d3.time.scale to create label for each hour of day and each day of week

百般思念 提交于 2019-12-12 02:27:19
问题 Ok there may be so many duplicates to this question on SO, i have checked almost all of them but i couldn't figure out answer to my quest I have this service which gives, count of hits to my site every minute and i want to display it in dashboard using d3 nvd3 line graph. I got all working except one thing, i want the labels on x axsis to start from midnight to midnight (00:00 to 23:00) and in intervals of 1hr [00:00, 01:00, 02:00, 03:00, 04:00, ......22:00, 23:00] But i am not able to get