charts

How to refresh asp.net charts in MVC using jQuery

∥☆過路亽.° 提交于 2019-12-13 02:38:28
问题 I downloaded the code and am following the sample Guy from Queensland How can I refresh the chart when I click Refresh? The following code returns the PNG in binary. <input type="submit" value="Refresh" id="refreshIssueHistory" /> <div id="theImageIssueHistory"> <% Html.RenderPartial("~/Views/Issue/Charts/IssueHistoryImg.ascx"); %></div> <script type="text/javascript"> $(document).ready(function() { $("#refreshIssueHistory").click(function() { RefreshImage(); }); }); function RefreshImage() {

Format datatable values in VBA

﹥>﹥吖頭↗ 提交于 2019-12-13 02:16:12
问题 Currently working on a vba script that makes charts automatically. I would like to add a datatable which is done using: .HasDataTable = True However I would like to show the values of series as percentages. Currently the value is defined as a Double containing all the values but not the right formatting. Using Format() or FormatPercent() will give the right values but returned in a String. This works for the datatable but not for the chart itself since it doesn't recognize the values anymore.

Looping in Google Charts Javascript

試著忘記壹切 提交于 2019-12-13 02:03:32
问题 I am looking to "perform a loop" in Google Charts Javascript in the arrayToDataTable. Can anyone suggest how to do this ? Also it it ok to use a php variable in the dataset like this ? <script> google.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Month', 'Movie'], ['1', <?php echo $Total[0]; ?>], ['2', <?php echo $Total[1]; ?>], ['3', <?php echo $Total[2]; ?>], ['4', <?php echo $Total[3]; ?>], ['5', <?php echo $Total[4]; ?>], ['6', <

Align chart areas horizontally in ASP.NET chart control

倖福魔咒の 提交于 2019-12-13 01:57:09
问题 I have two chart areas Chartarea1 and Chartarea2 inside a single chart control. But this is getting aligned vertically, I want to align it horizontally. I used AlignmentOrientation="Horizontal" but of no help. I am getting output as below: But i need output as: <asp:Chart ID="chartTest" runat="server" EnableViewState="true" Visible="false" Width="650px"><Titles><asp:Title Text="Test" Font="Arial, 11pt, style=Bold" /></Titles><Series><!--have few series here --></Series><ChartAreas><asp

Not able to generate a Google Chart using MySQL table data as the data source

↘锁芯ラ 提交于 2019-12-13 01:46:51
问题 I am trying to generate google chart from MySQL database. I refereed to this post : PHP MySQL Google Chart JSON - Complete Example I did everything mentioned in the post but getting this on the webpage: 'Weekly Task', 'type' => 'string'), array('label' => 'Percentage', 'type' => 'number') ); $rows = array(); while($r = mysql_fetch_assoc($sth)) { $temp = array(); // the following line will be used to slice the Pie chart $temp[] = array('v' => (string) $r['Weekly_task']); // Values of each

Calculation from Zoomable Graph C#

北城余情 提交于 2019-12-13 01:44:51
问题 Basically I have a graph that is bound from a DataTable which source is from a DataGridView. I have zoomable functions on the graph and I need it use X Axis SelectionStart and SelectionEnd in order to calculate the block of data that is selected. So I have some minimums maximums and averages placed in a richtextbox on another tab. As shown below in the code: //To show the Data from file into the TextBox richTextBox1.AppendText("\n" + "Heart Average : " + HRM.Active.DataRows.Average(r => r

Apache POI supports only ScatterCharts and LineCharts why?

我的未来我决定 提交于 2019-12-13 01:34:18
问题 I see that only LineChart and Scatter Charts are supported by default with Apache POI . Question: How can we add Other Chart types in spreadhsheet.. Any Idea or any help on this? or Is there Any reason for apache supporting only these two types of charts. 回答1: Apache poi provides poi-ooxml-schemas also. This are the underlying objects for XML based office documents. So one can try solving his requirements directly with those objects as long as they are not provided at higher level. The

How can i made a dot chart from d3.js template 'Reusable Charts' [duplicate]

荒凉一梦 提交于 2019-12-13 01:29:58
问题 This question already has answers here : How to replace line in chart by serie of dot? (2 answers) Closed 6 years ago . I'm attempting to use the 'Reusable Charts' approach described by @mbostock, everything is fine when using a line ( <path> ). However, when I try to use dots ( <circle> ), only one element is added to the chart and it's not well formed (wrong cx and cy ). My attempted code is between lines 50-55 of the fiddle. I tried to append a circle to my svg for each data but it is not

OpenOffice Calc macro to add pie chart

情到浓时终转凉″ 提交于 2019-12-13 01:29:48
问题 I am trying to insert a piechart in open-office using macro. But the code shows error: Line: Dim oDiagram As New com.sun.star.chart.PieDiagram Error: "Object not accessible. Invalid reference." I am unable to figure out why. Kindly help. Here is my complete macro code: Sub Macro1 Dim oRange as Object Dim oRangeAddress(1) As New com.sun.star.table.CellRangeAddress Dim oDiagram As New com.sun.star.chart.PieDiagram Dim oRect As New com.sun.star.awt.Rectangle Dim cTitle as String oRange =

Add hover labels to a scatter chart that has it's data range updated dynamically in Excel 2007

大憨熊 提交于 2019-12-13 00:46:41
问题 Hi I want to add labels to the plotted points on a scatter chart in Excel, however my charts data set range changes whenever my macro updates it... so my first question is: Is there a way to set the data range of an Add-in such as the one below "Chart Hover Label" in VBA? Recording a macro did nothing (my fingers were crossed to begin with). Here is a list of other chart add-ins I know of, from what I know only 1 of these allows you to show ONLY the label when you hover over the plotted point