charts

JSON => GoogleCharts formatting

强颜欢笑 提交于 2019-12-25 04:59:08
问题 I am desperately trying to get my GoogleChart working. This code always throws an error though: function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('number', 'hour'); data.addColumn('number', 'TriggerCount'); var JsonManuallyEncoded = '{1:{1:01,2:4},2:{1:03,2:4},3:{1:04,2:48},4:{1:05,2:59},5:{1:06,2:59},6:{1:07,2:87},7:{1:08,2:62},8:{1:09,2:46},9:{1:10,2:61},10:{1:11,2:71},11:{1:12,2:54},12:{1:13,2:61},13:{1:14,2:89},14:{1:15,2:58},15:{1:16,2:122},16:{1:17,2

How can I add a tabindex attribute to an nvd3 pie chart?

淺唱寂寞╮ 提交于 2019-12-25 04:43:23
问题 I have a basic pie chart with 3 wedges. When you click on a wedge of the pie, a tooltip will display. My intent is to have the same functionality for a keydown event. Scenario: When a pie slice has focus, a user can hit a key (ex: enter) which will display the tooltip exactly how the click event does. I figured this will require 2 steps. Make each pie wedge (.nv-slice) focusable by adding a 'tabindex = 0' attribute Add an event listener that triggers the tooltip similar to how a click event

Bar and Line charts are not synced when in the same chart area

≡放荡痞女 提交于 2019-12-25 04:28:18
问题 I have problem with a chart in vb.net. The problem is that line and bar are not synced in the chart area. I've attached a picture to make it clear what I mean Here is the code where I populate the chart. I´m getting the data from a database. Dim theDate As Date For i As Integer = Count - 1 To 0 Step -1 'Chart1.Series("serRxTime").Points.AddY(dv(i)(0) / 60) theDate = dv(i)(1) Chart1.Series("serTime").Points.AddXY(theDate.ToString("dd-MMM HH:MM", enUS), dv(i)(0) / 60) Chart1.Series("serAdd")

Android :: BitmapFactrory Cuts off image

淺唱寂寞╮ 提交于 2019-12-25 03:55:25
问题 We are trying a prototype using Google chart api. http://chart.apis.google.com/chart?chf=bg,s,000000&chxs=0,FFFFFF00,9.5&chxt=x&chs=500x300&cht=p3&chco=3072F3|FF9900|80C65A|990066&chd=t:50,5,5,40&chdl=50%C2%B0%20Apples|5%C2%B0%20Oranges|5%C2%B0%20Dates|40%C2%B0%20Strawberries&chdlp=b&chp=0.1 the problem is when we see the chart in the browser it displays the legend. but when we use the BitmapFactory to download the image to an ImageView or even SD card the Legend goes missing (this happens

To set dynamic data of excel chart at runtime and not Excel.Range

雨燕双飞 提交于 2019-12-25 03:53:53
问题 I want to set data for Excel chart but cannot display data in any Range. so i cannot use following function : chart.SetSourceData(range,XlRowCol) i have heared about the series but dont know how to use it I am having a List<int> list of integers and want to display a column chart with each integer value on singe column. Please help me. Any code or suggestions will do. thnx in advance 回答1: Is a List an array? You can assign 1D arrays to the .XValues and .Values of a chart series. You would

Highcharts help - Area chart stacking

╄→尐↘猪︶ㄣ 提交于 2019-12-25 03:47:22
问题 Maybe I am not understanding the area chart properly but here is an image to properly display what the problem is and what I am looking for: Can someone explain why stacking: normal display values like it does? And how to possibly fix it? I have tried stacking: null, and stacking: percent, but both do not give the desired results. EDIT: I see my error, however, I'm not sure how to fix it. I need to graph the two series in a group so that they are rendered together and not normalized. Any

Drawing graphics in ASP.NET web application: pie and rectangle

依然范特西╮ 提交于 2019-12-25 03:47:10
问题 I wish to draw some graphics in a asp.net web application page on some percentages, what is the code required? I'm asking specially for piechart and rectangle. 回答1: You can use the data visualization stuff (charting) that comes with .net 3.5 and 4. There is a downloadable Visual Studio solution (an asp.net web application project) that shows examples of different types of charts and corresponding code and markup: http://archive.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId

c# - create Horiz. scrollbar on chart when data is plotted off-screen

别来无恙 提交于 2019-12-25 03:44:22
问题 I have a line chart, which, after enough data points have been plotted to it, the data will exceed what is visible on screen (so that the chart is only showing the most recent data). When this occurs, I would like a scroll bar to be filled for the X axis, allowing the user to use the scroll bar to view such previous data. How do I go about doing this? I don't want the user to be able to drag or zoom on the chart itself, just to solely use the scroll bar to navigate along the chart. I've

How to create and format various charts in powerpoint based on excel data?

╄→尐↘猪︶ㄣ 提交于 2019-12-25 03:32:35
问题 I have been trying to find a solution, be it a macro or a simple solution, to create and format charts in a powerpoint presentation. So far I could not find anything that would solve my issue. The idea is to source data from a fairly big excel file and then create several charts on several powerpoint slides. That is, one big excel file and 10 powerpoint slides, with 8 individual charts on each slide. I tried this: http://mahipalreddy.com/vba.htm#ppgraph, but that did not help at all. How can

Deselect Label And Chart Excel VBA

杀马特。学长 韩版系。学妹 提交于 2019-12-25 03:18:09
问题 I am creating a chart using VBA using a command button I have on "Sheet1", however the chart is being added to another sheet ("Sheet2"). After the chart is added, I am using the below code to color the bars based on the DataLabel values and change the DataLabels as well: Dim oPoint As Excel.Point Dim sngPercente As Single For Each oPoint In Worksheets("Sheet2").ChartObjects("Performance").Chart.SeriesCollection(1).Points oPoint.DataLabel.Select sngPercente = CSng(Split(oPoint.DataLabel