shinobi

How to select a Column series Bar in code

与世无争的帅哥 提交于 2019-12-25 07:13:29
问题 I have a bar graph chart working and I can select bars by tapping them. In -sChart:seriesAtIndex: of my ShinobiChart datasource I have implemented: SChartColumnSeries *series = [[SChartColumnSeries alloc] init]; series.detectTapsOutsideBar = YES; series.selectionMode = SChartSelectionPoint; Which is working well. What I want to do now is to be able to select a specific bar based on the index of the data behind it. How do you do this? I have looked on the chart, the series but cannot find any

BarSeries linewidth ignored on Shinobi

爱⌒轻易说出口 提交于 2019-12-13 05:15:50
问题 I'm trying to set the width of the bars of a BarSeries with Shinobi. Code's following: DataAdapter<String, Double> da1 = new SimpleDataAdapter<String, Double>(); da1.add(new DataPoint<String, Double>("q1", 1.0)); da1.add(new DataPoint<String, Double>("q2", 3.0)); da1.add(new DataPoint<String, Double>("q3", 4.5)); da1.add(new DataPoint<String, Double>("q4", -2.5)); BarSeries series1 = new BarSeries(); series1.setDataAdapter(da1); BarSeriesStyle css1 = series1.getStyle(); css1.setLineWidth(180

How to implement multiple highlight line sliders in line chart

左心房为你撑大大i 提交于 2019-12-13 04:39:39
问题 I want to implement single and multiple highlight line sliders in line chart. I am able to get only single highlight line slider with MPAndroidChart (https://github.com/PhilJay/MPAndroidChart) library. But I also need two highlight line sliders to allow the user to select range of values(min and max values) on the chart. Please refer the below image for more information: Can we achieve the above requirement with any library or we need to draw a custom view? Any help or guidance will be well

How to update/remove/insert new series/data in Shinobi Line Chart in android?

泪湿孤枕 提交于 2019-12-13 04:15:18
问题 I am updating the chart but it showing old series also. How to update/remove/insert new series/data in Shinobi Line Chart in android? I am using this code: CategoryAxis xAxis = new CategoryAxis(); xAxis.enableGesturePanning(true); xAxis.enableGestureZooming(true); xAxis.setRangePaddingHigh(0.3); xAxis.setRangePaddingLow(0.1); shinobiChart.setXAxis(xAxis); NumberAxis yAxis = new NumberAxis(); yAxis.setMajorTickFrequency(200.0); yAxis.enableGesturePanning(true); yAxis.enableGestureZooming(true)

Android - set other color for each data point in BarSeries (shinobicharts)

你说的曾经没有我的故事 提交于 2019-12-11 18:19:48
问题 I trying use shinobicharts to design like as this chart: http://www.upsieutoc.com/images/2014/04/19/barseries.png BarSeries I used BarSeries, and i having a few problem following: i can't found function to set data on each DataPoint (20, 25, 30). i want set other color for each data point like in the image above. (red, green, purple) right align for label. (France, Malaysia, Spain). And this code: ChartFragment chartFragment = (ChartFragment) getFragmentManager().findFragmentById(R.id.chart);

Printing shinobi chart into PDF

不打扰是莪最后的温柔 提交于 2019-12-10 23:39:01
问题 I have several shinobicharts in my App that I want to print into a PDF file. Everything else, like normal views, labels and images work fine, even the grid, legend and gridlabels are displayed. The only thing missing are the series. So basically I get an empty chart printed into the PDF file. I print the PDF as follows: NSMutableData * pdfData=[NSMutableData data]; PDFPage1ViewController *pdf1 = [self.storyboard instantiateViewControllerWithIdentifier:@"PDF1"]; pdf1.array1 = array1; pdf1