linechart

How to Format XAxis values correctly in Line Chart in aChartEngine in android

▼魔方 西西 提交于 2019-12-11 03:33:42
问题 How can i make the XAxis in achartEngine format correctly? I would like it to have only the date value spaced correctly in the X-Axis with date values but i can't seem to get it work correctly. this is what i have tried: XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset(); dataset.addSeries(series); XYMultipleSeriesRenderer mRenderer = new XYMultipleSeriesRenderer(); mRenderer.setBackgroundColor(Color.BLACK); mRenderer.setApplyBackgroundColor(true); mRenderer.setGridColor(Color

SVG Line chart on known axes

倖福魔咒の 提交于 2019-12-11 02:44:02
问题 I want to create dynamically line chart (svg format). But svg coordinate system works inverse. Like this: When I have points like (0,9),(1,3),(2,6), graph will be drawing top to bottom. But svg has rotate function. But when it turned to left (- direction) last value will be first point. I need to draw line chart like mirroring it. But there is mirror function like roate or scale function :( Is there any way to draw line chart on simple x y coordinates like : 回答1: Mirroring is scaling by a

google line-chart api for haxis for date

荒凉一梦 提交于 2019-12-11 01:36:27
问题 I am having a list of data update daily based. data.addColumn('date', 'Date'); data.addColumn('number', 'Calorie'); data.addRows([ [new Date(2012,7,1), 400], [new Date(2012,7,2), 460], the date will increase for 3 months is there any way for me to display only 1st day of the month in the haxis. hAxis: { gridlines:{count:3, color: 'white'}, minValue: new Date(2012, 1, 31), maxValue: new Date(2012, 9, 30), showTextEvery:30, format:'d-MMM', }, that is my current haxis api code. it somehow

LineChart not rendering for Primefaces 5.0

£可爱£侵袭症+ 提交于 2019-12-10 21:56:36
问题 I recently upgraded to Primefaces 5.0 and was in the process of converting my charts to accommodate the new chart api in 5.0 when I came across a rather annoying problem where one of my Line Charts only refuses to render on this one specific page. More Specifically: A LineChart I have does not work on a specific page. If put on another page, the chart works. If put on the specific page where it was not working with all the other content deleted, it still does not work. If the chart is placed

apache poi: how to create chart with both bar and line?

给你一囗甜甜゛ 提交于 2019-12-10 21:49:59
问题 Is it possible to create a chart in apache poi with both bar and line in it? You can find an example here. If yes, can you please provide sample code to achieve this? Looking forward to hearing from you. Thanks in advance. 回答1: This is the solution I found. I unfortunately couldn't change the axis for the line chart. However you can easily change this manually on the file.When you open it, click on top of the line series with the right button and select "Format Data Series" you can change it

How do I use getData() to plot a LineChart with ObjC PNChart library in Swift?

痞子三分冷 提交于 2019-12-10 21:14:55
问题 I am a newbie programmer and recently started learning Swift. I am making a project in Swift and my intention is to plot a user-introduced signal function in the same View where the parameters are introduced (using a subView controlled by the class PNLineChart). The fact is that I installed PNChart library using CocoaPods, using a bridging header for the Objective C headers. The thing is that the way to use the clases and methods in ObjC is "translating" them to Swift syntax. I found that

How to clone X and Y axis?

非 Y 不嫁゛ 提交于 2019-12-10 20:14:06
问题 I have a barChart with overplot a lineChart, two different series barChart.getData().addAll(series1); lineChart.getData().addAll(series2); My question: is it possible, and how to, clone barChart axis so to get the same settings for lineChart? What I would like to have is a perfect axis settings overlapping. Thanks Edit: at this link axis clone method I see there is a clone method Methods inherited from class java.lang.Object How can I use this method? Thanks all Edit2: below is a sample class

How to draw two Y-axis with different scaling in AChartEngine

拈花ヽ惹草 提交于 2019-12-10 19:09:27
问题 I have problem in drawing two Y-axis (one at right and one at left) with different scaling in AChartEngine: I want left side to be scaled from 0 to 40 which is correct, But the right side scaling is not the desire one, as it should be from 10 to 100. Please help me. My source code look like this public LinearLayout execute(Context context) { String[] titles = new String[] { "Ciggars" }; List<double[]> x = new ArrayList<double[]>(); for (int i = 0; i < titles.length; i++) { x.add(new double[]

Getting series and values from CSV data in Zingchart

本小妞迷上赌 提交于 2019-12-10 17:32:47
问题 While creating mixed chart in Zingchart we can pass the type attribute values with values array. But I'm not sure when reading data from CSV how this can be achieved. I want to create mixed chart as on fiddle link below but data is to be read from a csv file. var myConfig = { "type":"mixed", "series":[ { "values":[51,53,47,60,48,52,75,52,55,47,60,48], "type":"bar", "hover-state":{ "visible":0 } }, { "values":[69,68,54,48,70,74,98,70,72,68,49,69], "type":"line" } ] } zingchart.render({ id :

MP Android Chart-How to fix the number of X-Axis values in the Line Chart?

浪尽此生 提交于 2019-12-10 14:27:34
问题 private void plotchart(String s[], float[] f1) { chart.setBackgroundColor(Color.rgb(63, 81, 181)); chart.setDescription(""); // enable touch gestures chart.setTouchEnabled(true); chart.setScaleEnabled(false); chart.setPinchZoom(false); chart.setGridBackgroundColor(Color.rgb(30, 46, 141)); chart.setDrawGridBackground(false); chart.getAxisRight().setEnabled(false); chart.setDrawMarkerViews(true); chart.setDragEnabled(true); chart.setViewPortOffsets(0f, 0f, 0f, 0f); // chart