charts

Highcharts. Pie chart. DataLabels formatter

天涯浪子 提交于 2020-01-24 00:51:16
问题 I have a pie chart. And I need to format DataLabels in someway. So I use: dataLabels: { useHTML : true, formatter: function () { if(this.point.id == 'razr') { return '<div><b>' + this.point.y + '</b></div><div style="left: -140px; text-align: center; position: absolute"><b>sum is:<br/>' + this.point.summ + ' </b></div>'; } else return '<b>' + this.point.y + '<b>'; } } And what I got: My problem is here style="left: -140px; . The position is static. I can't find any way to position my sum

OnSelectionChanged event for chart controls in Modern UI Charts for Windows 8

隐身守侯 提交于 2020-01-23 18:04:05
问题 I am using Modern UI Charts for Windows 8 and I need to do a drill down when the user selects a series item in the chart (for eg: I have a Column Chart which shows a student Year wise performance and when user selects a particular Column I should show another Column chart with the score he obtained for that particular year in each subject) I am looking for some kind of selectionchanged event or something similar so that I can change the input to the series to get a different chart Please Help

How to change Bar Charts Legend position in PrimeFaces?

蓝咒 提交于 2020-01-23 16:59:23
问题 I am developing a web application in JSF in which I am using PrimeFaces bar chart. I want to change the legend position. I verified Primefaces: Charts and Legend position in that post they use, <p:barChart id="stackedKWH" value="#{kwhSalesBeanManager.kwhSalesChart}" legendPosition="e" style="height:300px;width:800px" title="kWh Sales by Type" stacked="true" barMargin="10" min="0" max="125000000"/> but in primeface 5.1 there is not <p:barchart/> <p:chart type="bar" model="#{chartView.barModel}

Two line title in google chart api

二次信任 提交于 2020-01-23 16:47:24
问题 I am using Google chart api to create a pie chart. What I want here is to display the title in two lines. One is the actual title and below that some info in small text. How can I achieve this? 回答1: So, just tried to get myself caught up on the API (guess they do this via javascript now and deprecated the image charts--good to know). Anyways... There's a page on Pie Chart options, but nothing specific to per-line. You can split lines using \n , but you're stuck with a uniform styling (via

C# Charting - Reasonble Large Data Set and Real-time

爱⌒轻易说出口 提交于 2020-01-23 03:43:45
问题 I'm looking for a C# WinForms charting component, either commercial or open source, that can handle relatively large data sets and be reasonable scalable with regards to chart rendering and updates. The number of data sets to be displayed would be around 30. There would be between 15 and 20 updates per second for each data set. A line chart component would be required for this. 回答1: I have used ZedGraph in the past for realtime stock charts with large histories. It can be a little slow if the

Run-time error '7': Out of memory

别说谁变了你拦得住时间么 提交于 2020-01-23 02:07:32
问题 I'm trying to edit embedded charts in Word documents. My source code is below. It has worked a long time but not for the last two days. I get this error: Run-time error '7': Out of memory I have searched a lot , but I don't understand the problem. When I shutdown computer and after open it, then it works correctly, but after I get error again. It gives error in this part: 'create range with Cell Set oChart = oInShapes.Chart oChart.ChartData.Activate ' ***Note: It gives error here*** 'Set

Google chart redraw onclick

我只是一个虾纸丫 提交于 2020-01-23 01:24:26
问题 I am trying to make a chart from which the data is selectable through various dropdown menu's and a date selector. I can't seem to find a way to pass new data in the chart on a click event. I got it working so far that onClick, it draws an entire new chart. But this doesn't seem the way to me. So is there an other way to do this? HTML: <div id="piechart" style="width: 450px; height: 500px;"></div> <div class="date-selector-container"> <div class="btn-group"> <button type="button" class="btn

Apache POI set Excel chart title

十年热恋 提交于 2020-01-22 19:29:45
问题 I'm creating an Excel workbook from scratch. One of the sheets contains a chart, and I want to set the chart title. Apache POI has a setChartTitle method on HSSFChart, but neither XSSFChart nor the format-agnostic Chart have methods to set the chart title. Since I need to create .xlsx files this is a problem for me. After much poking around in POI code and OOXML specifications I managed to come up with this code for setting the title on a newly created Chart: if (chart instanceof XSSFChart) {

Pie, bar, line: SVG/VML better than Canvas

旧街凉风 提交于 2020-01-22 17:47:52
问题 I need to choose a library for "standard" charting: pies, lines and bars. From what I've read, it seems to me that the best format is SVG/VML, like Highcharts for example. SVG is becoming standard across all major browsers, now that IE 9 accepts it. It seems easier to rescale and export than Canvas. Still, I see that several charting libraries rely on Canvas. Am I missing something? Is there any reason for considering Canvas over SVG for such applications? 回答1: You can generally achieve the

Pie, bar, line: SVG/VML better than Canvas

独自空忆成欢 提交于 2020-01-22 17:47:06
问题 I need to choose a library for "standard" charting: pies, lines and bars. From what I've read, it seems to me that the best format is SVG/VML, like Highcharts for example. SVG is becoming standard across all major browsers, now that IE 9 accepts it. It seems easier to rescale and export than Canvas. Still, I see that several charting libraries rely on Canvas. Am I missing something? Is there any reason for considering Canvas over SVG for such applications? 回答1: You can generally achieve the