charts

How to bubble chart aligned bottom and stick to each other

…衆ロ難τιáo~ 提交于 2019-12-24 15:52:15
问题 I would like to ask if there is a way to achieve the layout and arrangement of the circles on the image. I would like create a chart of series of circles that are link together and all aligned in the bottom. 回答1: The distance between two circles with radii r1 and r2 is: You can use this to position your circles on the x-axis. For an example see: http://bl.ocks.org/7a9d6c4725367aaed5db . 来源: https://stackoverflow.com/questions/14826815/how-to-bubble-chart-aligned-bottom-and-stick-to-each-other

MPAndroidChart -Use multiple text instead of “No Chart Data available” depends on the data

别等时光非礼了梦想. 提交于 2019-12-24 15:24:55
问题 I tried to change MPAndroid Chart text of "No Chart Data available" into "Loading Data..." while the data is retrieving.I had done this.But when there is no data the chart layout should shows ," NO DATA". I am getting the Same Text(Loading Data...) eventhough there is no data. protected void onDraw(Canvas canvas) { if (!mDataNotSet && mData==null) { canvas.drawText("NO DATA", getWidth() / 2, getHeight() / 3, mInfoPaint); return; } if (mDataNotSet && mData == null || mData.getYValCount() <= 0)

How to make limits on the Y axis be the same using XChart?

雨燕双飞 提交于 2019-12-24 15:19:23
问题 I am trying to plot a series of functions that are similar. The domain is [0,1] and the range always in say [-3,3]. I want the limits on the Y axis to be the same for each graph. Trying to set the series y min and y max does not seem to work. Is there a way to make the limits on the Y axis be the same on each graph? import java.math.BigDecimal; import java.util.*; import com.xeiam.xchart.*; public class Bug { static void plot(Chart chart,int n) { chart.setTitle("title"); chart.setXAxisTitle(

Insert reportlab chart into django template

孤街醉人 提交于 2019-12-24 14:45:34
问题 I want to render a reportlab barchart in a django template. This django documentation gives excellent instructions for implementing the reportlab-chart generation within a django view, and this stackoverflow post recommends putting the chart object directly in an HttpReponse: binaryStuff = chart.asString('gif') return HttpResponse(binaryStuff, 'image/gif') How can I insert the binaryStuff into a django template? Eg: #views.py def barChart(request, word_id): from charts import BarChartDrawing

Rails: Remove white border from Pie Chart using Chartkick Gem

允我心安 提交于 2019-12-24 14:27:42
问题 Is there a way to remove the white border from the pie chart slices by adding an option to the library? I've got a snippet of the code I used to create this chart. <%= pie_chart monthly(current_user.events), colors: colors_group, width: "200px", height: "200px", library:{animation:{easing: 'easeOutQuad'}} %> Thank you in advance! 回答1: Try setting the borderWidth option to 0 : <%= pie_chart monthly(current_user.events), colors: colors_group, width: "200px", height: "200px", library: {animation

Display label on each bar chart in ASP .NET MVC 5 Chart

强颜欢笑 提交于 2019-12-24 14:08:52
问题 I want to display a label on each bar of the chart horizontally @using GJob.Models.Views @model BasicChart1 @{ ViewBag.Title = "The Chart"; Layout = "~/Views/Shared/_Layout2.cshtml"; } @{ var myChart = new Chart(width: 1200, height: 800) .AddTitle("My chart title") .AddSeries("Default", chartType: "bar", markerStep: 1, xValue: Model.XData, xField: "Name", yValues: Model.YDataINT, yFields: "Value") .Write("png"); } I have tried to get help from those articles https://docs.microsoft.com/en-us

Showing multiple Tooltips in highcharts simultaneously

落花浮王杯 提交于 2019-12-24 13:42:42
问题 I want to show multiple tool tips at the same time in a Highchart. The basic requirement is like whenever the mouse is hovered over a point in the series I need to show the tool tip for all the points within a radius X of the hovered point. I have tried something like this so far : http://jsfiddle.net/vmso2dbf/ $(function () { $('#container').highcharts({ title: { text: 'Multiple tooltips' }, plotOptions: { series: { point: { events: { mouseOver: function (event) { var r = 50; var arr = [];

Can I use multiple ItemRenderer with one LineSeries?

最后都变了- 提交于 2019-12-24 13:25:14
问题 Currently I have created below class which extends ItemRenderer to add labels for all data points in Line Chart. package lib { public class LineChartLabelRenderer extends UIComponent implements IDataRenderer, IFactory { private var _label:Label; public var solidColor:SolidColor; public function newInstance():* { return new LineChartLabelRenderer(); } public function LineChartLabelRenderer():void { super(); _label = new Label(); addChild(_label); _label.setStyle("color",0x000000); _label

How to add negative values to JavaFx Area Chart?

混江龙づ霸主 提交于 2019-12-24 13:18:23
问题 I'd like to draw a difference (area) chart, something like this: How would d3.js difference chart example work with json data? where my chart is centered around horizontal (y=0) axis. JavaFx's Area chart seems to know how to fill only the area below the line!? Example "Adding negative value" (Fig 33-7) seems to be what I'm looking for (March series) BUT it does not work/render as shown! Instead of: it renders: Thanks, Igor 来源: https://stackoverflow.com/questions/30185035/how-to-add-negative

Highcharts - Diagonal line X/Y axis

旧街凉风 提交于 2019-12-24 13:16:43
问题 Is there any way of showing a 1:1 diagonal line in Highcharts? I am looking for a line which X and Y values always match. I know how to render a line in Highcharts using the renderer, however, I don't want an independent line but one that reacts to the chart resizing/zooming. A series with [(0,0),(1,1)] is not really an option (it would affect zooming). Something like this except x and y axis might vary their value due to zooming. 回答1: You can do it by detecting the setExtremes() event on you