charts

Highcharts multiple charts on a single page using c# asp.net mvc3

百般思念 提交于 2020-01-03 03:42:05
问题 I was wondering if it was possible to return multiple charts to a single page/view using c#? Background Information C#, ASP.NET MVC3 DotNet.Highcharts Library Goal: My overall goal is to have a webpage with two charts using ASP.NET MVC3 Example HighCharts g1 = new HighCharts("chart"); HighCharts g2 = new HighCharts("chart"); return View(model, g1, g2); This is an example of what I want, but I am not too sure if this is possible. If so how would I accomplish this? If possible how would I

Change axis values on Chart Winforms

こ雲淡風輕ζ 提交于 2020-01-03 03:24:06
问题 I have a chart in WinForms. X-axis is a time line and Y-axis is values are either 0 or 1. How can make the chart display Success/Failure instead of 0 and 1 on Y-axis? 回答1: You can set the Y-axis to use custom labels instead of numbers. chart1.ChartAreas[0].AxisY.CustomLabels.Add(-0.5, 0.5, "Success"); chart1.ChartAreas[0].AxisY.CustomLabels.Add(0.5, 1.5, "Failure"); You have to set a range in which the label will appear. That's why I chose a range from -0.5 to 0.5 for "Success" (it is

Saving Google Chart image to file using PHP

旧街凉风 提交于 2020-01-03 02:54:10
问题 I have a script which generates Google Chart images for clients. It works fine displaying in HTML but I now need to save each chart locally as a .png. If I try: $imageData = file_get_contents($url); file_put_contents('C:/xampp/htdocs/image.png',$imageData); then I always receive [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 400 The script works fine for normal images, but not Google charts. Same result if I use cURL to save the image too. An example of my

draw historical last price chart using bloomberg API

≯℡__Kan透↙ 提交于 2020-01-02 22:02:29
问题 I want to draw historical last price charts using the Bloomberg Java API but I don't know which Bloomberg classes I should use. 回答1: Assuming you are using the Bloomberg Java API, for historical data you need to use the "//blp/refdata" service and send a "HistoricalDataRequest" . Several examples are given in the Developer's guide, available on the project page. Alternatively, you can use jBloomberg* which is simpler to use because it handles the messy details for you. To retrieve historical

Gnuplot persist graph windows

不羁岁月 提交于 2020-01-02 19:14:15
问题 I am using the following commands to draw a simple sin(x) plot on gnuplot , with a pipe from VS2010 C++ set terminal windows set title 'Graph of velocity versus time' set xrange[0:10] plot sin (x) Problem is the window keeps closing down too quickly . I don't want to use the 'pause' command as it stop the entire code. Is there any other way to keep this window open without the pause command? Cheers 回答1: I cant try it, but have you tried setting the terminal to 'set terminal x11' set up the

How to programmatically zoom in highcharts?

*爱你&永不变心* 提交于 2020-01-02 17:36:13
问题 When calling axis.setExtremes() or axis.zoom(), the associated zoom button does not become highlighted. For example, if I programatically 'zoom' to 1-hour, I would like the '1 hour' zoom button to appear as 'pressed'. Is there a simple way to accomplish this? For more context: I want to make my app stately, so that if you view a graph, zoom, then navigate away from the graph and back to it again, I want to restore your 'zoom level'. I have this basically working by listening for

Update and refresh wpf chart

我怕爱的太早我们不能终老 提交于 2020-01-02 16:09:40
问题 I'm working with chart of wpf toolkit, and I can't view the inserted data of the chart... Here is the xaml part: <chartingToolkit:Chart Height="352" HorizontalAlignment="Left" Name="profilo_cale_chart" Title="Profili cale" VerticalAlignment="Bottom" Width="655" FontSize="16" Margin="252,0,0,55" Visibility="Hidden"> <chartingToolkit:AreaSeries DependentValuePath="Value" IndependentValuePath="Key" IsSelectionEnabled="True" ItemsSource="{Binding}" Foreground="#FF242424" Background=

Update and refresh wpf chart

天涯浪子 提交于 2020-01-02 16:09:08
问题 I'm working with chart of wpf toolkit, and I can't view the inserted data of the chart... Here is the xaml part: <chartingToolkit:Chart Height="352" HorizontalAlignment="Left" Name="profilo_cale_chart" Title="Profili cale" VerticalAlignment="Bottom" Width="655" FontSize="16" Margin="252,0,0,55" Visibility="Hidden"> <chartingToolkit:AreaSeries DependentValuePath="Value" IndependentValuePath="Key" IsSelectionEnabled="True" ItemsSource="{Binding}" Foreground="#FF242424" Background=

How to enable hover events for text with google geochart

最后都变了- 提交于 2020-01-02 16:03:13
问题 Is it possible to use the hover effect with google geochart so that a selected region on the map also trigger a change of color of the text of the region at a list of the regions? I would like to have the word "Montana" in the list a different color if Montana is selected on the map geochart. I hope you understand what I'm trying to achieve. function drawMap() { var data = google.visualization.arrayToDataTable([ ['Province'], ['Montana'], ['Washington'], ['Oregon'], ['California'], ['New York

Displaying pie chart data value of each slices using react-chartjs-2

孤街醉人 提交于 2020-01-02 15:46:18
问题 I'm making a pie chart and I'm struggling to show the pie chart data value of each slices. As my application is written in React.js, I use react-chartjs-2. I found this solution for chart.js and tried to implement, but it didn't work for react-chartjs-2. How to display pie chart data values of each slice in chart.js How can I add value to each slices? Any help is appreciated. This is a current view of pie chart. According to the advice, I implemented chart.piecelabel.js . It does not work yet