linechart

Dynamically generate axis and series in Extjs 4

六月ゝ 毕业季﹏ 提交于 2019-12-20 05:45:09
问题 I want to generate Y axis dynamically based on json response. for example : { "totalCount":"4", "data":[ {"asOfDate":"12-JAN-14","eventA":"575","eventB":"16","eventC":"13",...}, {"asOfDate":"13-JAN-14","eventA":"234","eventB":"46","eventC":"23",...}, ...and many more. ] } And I want to generate line chart of date vs event . Date is on x-axis and eventA,eventB,...so on should be on Y-axis. So far I tried this : var fieldsForChart = ['eventA','eventB',...]; //This is hard coded. Ext.define(

D3js line chart responsiveness in angular 7

∥☆過路亽.° 提交于 2019-12-20 05:39:54
问题 We have created line chart using D3js version 5.9 in angular 7 with hard coded width(450) and height(300) for svg. I went through some blog and got to know we can write css using ::ng-deep. I tried below code svg dimension(angualr code): svgDimension = { width: 420, height: 300 }; css code(scss): @media only screen and (max-width:455px) { ::ng-deep .svgWidth{ width: 350px; } ::ng-deep .svgHeight{ height: 250px; } } Need media query to resolve responiseveness issue for d3js line chart in

Interval Selection Event in Primefaces Chart

夙愿已清 提交于 2019-12-20 04:06:15
问题 I have a dynamic LineChart. I am setting the zoom to false but I want to be able to trigger an Ajax Event when selecting an area in the Chart (like the zoom functionnality when selecting the area you want to zoom), I want to call a server method and getting the max and min x axis values of the selected area. Can anyone help with this? Else if I set the zoom to true , is there any way to get the values from the zoomed area ? 回答1: PrimeFaces and JSF is in this context nothing more than an html

Add a line chart beneath an existing pie chart

跟風遠走 提交于 2019-12-18 09:10:54
问题 When I click on a section of my piechart, I would like to see under first chart another chart (line chart). Now I generated another panel chart, but I lost first panel, because the second chart paint on first panel and second paint a first chart, but second has bad dimension; see image. How i can adjust my problem? JFreeChart chart = ChartFactory.createPieChart("Pratiche complessive", dataset, true, true, false); ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new

MPAndroidChart How to represent multiple dataset object with different number of points in the same chart line

亡梦爱人 提交于 2019-12-18 07:07:57
问题 I am using MPAndroidChart for charting. I am building a line chart which has multiple dataset objects. From the examples provided by MPAndroidChart I can observe that multiple dataset objects can be drawn in the same line chart but with the same number of points (y-values) and those y-values referenced to the same x-values. What happens if I want to draw multiple dataset objects in the same line chart with different number of points (y-values) referenced to different x-values for each one?

highcharts column chart with line, need line start at bar start

非 Y 不嫁゛ 提交于 2019-12-14 02:22:08
问题 here is demo fiddel, need line chart start from first column left border to last column right border like image below in demo fiddel it is start for center of bars. here is my code of series or you can see in fiddel : series: [{ name: 'Rainfall', type: 'column', yAxis: 1, data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], tooltip: { valueSuffix: ' mm' } }, { name: 'Temperature', type: 'line', data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3,

rcharts nvd3 linechart with categorical x axis

妖精的绣舞 提交于 2019-12-14 02:19:09
问题 How can I a draw a linechart with rcharts using nvd3 and a categorical xaxis? What I'm trying to do would look with ggplot2 like this: library(ggplot2) dat <- data.frame(expand.grid(group = letters[1:3], x = letters[4:6]), y = rnorm(9)) ggplot(dat, aes(x = x, y = y, group = group, color = group)) + geom_line() I tried: library(rCharts) nPlot(y ~ x, group = 'group', data = dat, type = 'lineChart') I know that I could change x to a numeric variable, but then the xaxis labels would not be

How to create multiple y-axis Line chart in danielgindi iOS chart?

前提是你 提交于 2019-12-13 14:11:54
问题 I want to create a graph with multiple y-axis. Duel y-axis graph is possible in danielgindi chart but I want more the two y-axis graph. Like below image: let set1 = LineChartDataSet(values: yVals1, label: "DataSet 1") set1.axisDependency = .left set1.setColor(UIColor(red: 51/255, green: 181/255, blue: 229/255, alpha: 1)) set1.setCircleColor(.white) set1.lineWidth = 2 set1.circleRadius = 3 set1.fillAlpha = 65/255 set1.fillColor = UIColor(red: 51/255, green: 181/255, blue: 229/255, alpha: 1)

How to set String value of xAxis in MPAndroidChart?

╄→尐↘猪︶ㄣ 提交于 2019-12-13 13:22:50
问题 I want to make Line Chart Graph, but i have problem to show value string in xAxis, im used Library Github from MPAndroidChart to LineChart. Please help me how to add String Value and actually to much question i want ask private void drawLineChartLine(){ private float[] yDataL = {40, 60, 70, 80}; private String[] xDataL = {"Week 1", "Week 1" , "Week 3" , "Week 4"}; ArrayList<Entry> yEntrys = new ArrayList<>(); final ArrayList<String> xEntrys = new ArrayList<>(); for(int i = 0; i < yDataL

iOS Charts, wavy lines

杀马特。学长 韩版系。学妹 提交于 2019-12-13 09:30:50
问题 Let's get straight to the point: I started to use iOS Charts by Daniel Gindi, but I just can't reproduce this wavy lines in my line chart (and please notice that this image is picked form the repository of iOS charts!) All I get is just this, simple straight lines with no curves And this is the code in viewDidLoad that I used for showing that: let ys1 = Array(1..<10).map { x in return sin(Double(x) / 2.0 / 3.141 * 1.5) } let ys2 = Array(1..<10).map { x in return cos(Double(x) / 2.0 / 3.141) }