chart

NVD3 Scatter Chart Circle Radius

匿名 (未验证) 提交于 2019-12-03 02:01:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I was wondering how I can set minimum and maximum radii of the circles in an NVD3 scatter chart. NVD3 Scatter: http://nvd3.org/ghpages/scatter.html 回答1: Call .sizeRange([minArea, maxArea]) on your chart object. Note that "size" is proportional to area, not radius, so you need to use the square of the maximum/minimum radius (adjusted by pi/2 if you want to be precise). 回答2: As of 1.7.1, call .pointRange([minArea,maxArea]) . 回答3: nv.addGraph(function() { var chart = nv.models.scatterChart() .showDistX(true) .sizeRange([1000, 100]) /*****Chart

Real time line graph with nvd3.js

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to create a real time graph using nvd3.js which would be updated periodically and with the impression that the data is processed in real time. For now I have been able to create a function which would update the graph periodically but I cannot manage to have a smooth transition between "states" like the line doing a transition to the left. Here is what I did using nvd3.js , here the interesting code is: d3.select('#chart svg') .datum(data) .transition().duration(duration) .call(chart); Now, I have been able to produce what I want

Converting Chart.js canvas chart to image using .toDataUrl() results in blank image

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using Chart.js. I am trying to convert the chart to an image by getting a base 64 string. The tutorial ( http://www.chartjs.org/docs/ ) devotes an entire 1 line on the topic: The canvas element also allows for saving the contents as a base 64 string, allowing saving the chart as an image. A canvas element has the method of toDataURL , which returns a base64 string of the image. However, when I do that, the image it renders is just a transparent rectangle with the dimensions of the chart, and it does not include the chart contents. Here

MPAndroidChart LineChart custom highlight drawable

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using MPAndroid Chart library to draw Line Chart in my Android app. The status of graph is like: I want to change it like this: So I want to change MPAnroid Line Chart's points, ts called "Circle Hole" in library. I want to switch this hole to drawable. There is a way I can do that? The circle hole change code is here: LineDataSet set1 = new LineDataSet(yVals, "DataSet 1"); set1.setDrawCircleHole( true ); set1.setCircleColor( Color.BLACK ); Library reference is here: MPAndroidChart 回答1: Since version 3.0 you can provide your own custom

Shiny rcharts multiple chart output

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I overwrite the output display options with running multiple charts with shiny and rchart so the output result is a 2x2 matrix type grid layout. require(rCharts) require(shiny) require(data.table) runApp(list( ui = mainPanel( span="span6", showOutput("chart2", "Highcharts"), showOutput("chart3", "Highcharts"), showOutput("chart4", "Highcharts") ), server = function(input, output){ output$chart3 回答1: Change ui to: ui = bootstrapPage(mainPanel( div(class = "row", div(showOutput("chart2", "Highcharts"), class = "span4"), div(showOutput(

.NET 3.5 chart controls exception: Error executing child request for ChartImg.axd

匿名 (未验证) 提交于 2019-12-03 01:55:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Anyone getting this error when using the new free chart controls MS bought from Dundas? "Error executing child request for ChartImg.axd" On the MSDN forum they suggested it was my web.config: MSDN forum post So far that hasn't fixed the problem though. Any other ideas? 回答1: I encountered the same problem: the chart would work on one page but not on the next. Turns out if the chart is initialized for the first time in a POST (i.e. a postback) the error is thrown because the handler is configured incorrectly. To fix the issue modify the

How to replace com.sun.image.codec.jpeg.JPEGImageEncoder in this code?

匿名 (未验证) 提交于 2019-12-03 01:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have used com.sun.image.codec.jpeg.JPEGImageEncoder to handle JPEG images, like charts and others, in my webapp. Now, I am updating my machine to use JDK7, but this version deprecated this class. Below is the code that I need to change: public void processChart(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("image/jpeg"); out = response.getOutputStream(); response.setHeader("Pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache"); response.setDateHeader

How to build my own gantt chart with JS [closed]

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am about to see if Javascript in a HTML5 canvas is capable of building my own gantt chart. The chart should provide drag and drop. Is there a library that gives me a good basis? so I don't have to build everything from scratch. 回答1: jsGantt A fully featured gantt chart component built entirely in Javascript , CSS and AJAX . No images required. Features include: Tasks & Collapsible Task Groups Dependencies, Task Completion, Task Color, Milestones, Resources, Dynamic Loading of Tasks, Dynamic change of format (day/week/month), Load

ExtJS How to add a click event to Pie Chart pieces

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have created a Pie chart using the Pie chart example in sencha ExtJS website , I wanted to add a click event to the each Pie slice so that i get handle to the contextual data on that slice. I was able to add a click listener to the Pie but not sure how to get the data on the slice. Below is the ExtJS code. Ext.onReady(function(){ var store = Ext.create('Ext.data.JsonStore', { fields: ['name', 'data1', 'data2', 'data3', 'data4', 'data5'], data: [{ 'name': 'January', 'data1': 10 }, { 'name': 'February', 'data1': 7 }, { 'name': 'March',

extjs panel resize while window resizes

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a panel with a "form" layout, containing several buttons. now I want to enable this panel resize according to window resizing. How can I get this done? thanks. 回答1: You can make the panel resizable by setting the 'resizable' config option, see the docs for the various options: http://dev.sencha.com/deploy/ext-4.0.0/docs/api/Ext.panel.Panel.html . As far as how the form components interact you'll need to set anchor's if you want to use a form layout or switch to an hbox/vbox type of set-up with various flex settings. 回答2: Ext