charts

Windows form chart control with multiple series not rendering

◇◆丶佛笑我妖孽 提交于 2019-12-11 21:42:56
问题 I have been researching chart controls for a few days and have seen that using DataBindXY with multiple series on one chart area should work. However mine is not working. I have tried both setting properties in the design form and creating the series in code behind on form page load. The first series will render but the second will not. I tried splitting into 2 sub routines and calling the subroutines on load but that did not work either. Any ideas on how to get multiple series on the 1 line

Cognos popout label for selected item

情到浓时终转凉″ 提交于 2019-12-11 21:18:40
问题 I have two similar javascripting challenges I am looking to solve in Cognos with the help of conditional formatting. I would like to be able to show a data item, for only the item that I am comparing other items to in Cognos. For example, If my chart shows a comparison of Florida to the rest of the US States -- Florida is what I am doing am doing the comparison to within my charts. So I would like to show the data label for Florida only. Conditional formatting in Cognos will let you either

Display time on Xaxis with line chart make by Highcharts

拟墨画扇 提交于 2019-12-11 21:09:52
问题 I am making a line chart with Highcharts and everything was fine but the X-axis. It's not displaying the right data which I have get from mysql. This is my chart right now but it is not what i expected. X-Axis row auto change all of my data to 01:[my minutes]:[my mins], example: my data is:2015-05-12 08:23:40 it auto convert to 01:23:40. i don't know why http://imgur.com/YSC7vTl,Y4jYQ8q#0 I need a chart look like this but I don't know how to fix it, help me please. http://imgur.com/YSC7vTl

C# change color in chart

半腔热情 提交于 2019-12-11 20:01:54
问题 I have a chart in C# where I bind values to it. I have two different arrays with values and concat them to one chart. Now I wanted to display one part of the chart (with the values from the first array) in a different color. How to do this? drawing two charts causes errors so I wanted to do it this way. Here is a part of the code: String[] x_axis = _temp_date1.Concat(_date).ToArray(); Double[] y_axis = _temp_data.Concat(_value).ToArray(); chart1.Series["Chart"].Points.DataBindXY(x_axis, y

How to create a mouse click event for an item (point) from a Pie chart?

让人想犯罪 __ 提交于 2019-12-11 19:56:58
问题 I am creating an ASP.NET/C# website I used the ASP.NET 4.0 Chart control, to draw a Pie chart. Is there a way to create an action for when the user clicks an item (point) with the mouse? For example, an item is clicked, it's color change, or the user gets the item's name or... Thank you for any help Is there also a way to create a mouse over event on an item? 回答1: sure there are some options for interactivity on both ASP.NET and Windows Forms. check here: Interactivity (Chart Controls) there

Scrollbar moving to right instead of left

可紊 提交于 2019-12-11 19:56:33
问题 I have made a chart which dynamically draw a spike when data received. In this chart I have made a scrollbar, so only 20 datapoints get shown at on time. public void Chart() { ChartArea mov = SleepMovChar.ChartAreas["Movement"]; mov.AxisX.ScrollBar.Size = 12; mov.AxisX.ScrollBar.ButtonStyle = ScrollBarButtonStyles.SmallScroll; mov.AxisX.ScrollBar.ButtonStyle = ScrollBarButtonStyles.All ^ ScrollBarButtonStyles.ResetZoom; mov.AxisX.ScrollBar.IsPositionedInside = true; mov.AxisX.ScrollBar

Making axis title in Excel chart with VBA

馋奶兔 提交于 2019-12-11 19:51:21
问题 I create an excel chart with VBA and then format the axis titles and fonts' size. The following code works well for the Horizontal axis cht.SetElement msoElementPrimaryCategoryAxisTitleAdjacentToAxis cht.Axes(xlCategory, xlPrimary).AxisTitle.Text = "Factor of Safety" cht.Axes(xlCategory, xlPrimary).AxisTitle.Format.TextFrame2.TextRange.Font.Size = 15 However, the similar code for the Vertical axis cht.SetElement msoElementPrimaryValueAxisTitleAdjacentToAxis cht.Axes(xlValue, xlPrimary)

How could I close a plot in python and then reopen it?

断了今生、忘了曾经 提交于 2019-12-11 19:47:50
问题 So I have this code: plt.style.use('bmh') fig = plt.figure(figsize=(10,5)) ax = fig.add_subplot(111) ax.plot(months, monthly_profit, 'b-',lw=3) plt.xlabel('Monthhs') plt.ylabel('Profit') plt.yticks(np.arange(10000,25000,step=1500)) plt.title('Profit Chart') play = True while play: x = int(input("State your choise : ")) if x == 3: plt.show() print("Would you like to continue? YES or NO?") y = input() if y == "NO": play = False plt.close("all") And it seems like it doesn't close the plot at all

How to add zoom IN/ZOOM out functionity into chart control

耗尽温柔 提交于 2019-12-11 19:46:49
问题 I have created chart using microsoft chart control. Below is the stuff. <asp:Chart ID="dntdata" runat="server" Height="130px" Width="134px" Visible="false"> <Series> <asp:Series Name="Series1" ChartType="Doughnut" IsValueShownAsLabel="True" LabelForeColor="White" Font="Verdana,5pt"> <Points> </Points> </asp:Series> </Series> <ChartAreas> <asp:ChartArea Name="ChartArea1" Area3DStyle-Enable3D="True"> </asp:ChartArea> </ChartAreas> </asp:Chart> I need to add - ZOOM IN/ZOOM OUT functionality into