profile
viewpoint
Daniel Cohen Gindi danielgindi Self Employed, CTO at eyedo fielding technologies ltd. Israel

danielgindi/Charts 23584

Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.

danielgindi/ChartsRealm 110

A Realm.io module for Charts

danielgindi/app-redirect 28

Handles redirecting to the native app / app store on iOS and Android

danielgindi/android-helpers 26

A collection of helper classes for android

danielgindi/android-httprequest 4

A chainable HttpRequest/Response library for Android.

danielgindi/DGBarcodeView 3

Barcode view for iOS / ObjC

danielgindi/DGBlockThrottle 3

A little utility to throttle calls to a block in ObjC

danielgindi/DGButton 3

A UIButton subclass with support for more customization, including RTLing image position (iOS / ObjC)

danielgindi/android-vision 2

Sample code for the Android Mobile Vision API.

danielgindi/dg.Utilities 2

A collection of utilities in all kinds of areas

issue openeddanielgindi/Charts

how to calculate lowestVisibleY

I am trying to workout how to get hold of a value for lowestVisibleY

It is the min value passed to AxisRendererBase::computeAxisValues(min: Double, max: Double) however doesn't appear to persist anywhere. Other than modifying the code, is there a clean way to get or calculate this value?

created time in 2 hours

issue commentdanielgindi/Charts

Modifying the colour of LineChartDataSet

Not sure if this helps, however I think you'd need to redraw the data. However I think you could achieve what you describe with 3 LineChartDataSet's.

The first would need to-be invisible and the "union" of the other two, in terms of xmin, xmax . Then you'd add all three to the LineChartData object.

I am after the situation where I only plot some of my data, and the rest of the graph is blank, which is what I achieve below. I have two sets, invisibleSet (where alpha: 0.0) defines the extent & visibleSet is the set I actually want to see. So I guess you'd simply have another visibleSet?

This is highly inefficient, however appears to work, only the rampUp set of data is visible

func setChartValues( _ count: Int = 50) {
        let blankValues = 25
        let rampDown = (0..<blankValues).map{ (i) -> ChartDataEntry in
            let val = 1 - Double(Double(i)/Double(blankValues + 1))
            print("ramp-down: \(val)")
            return ChartDataEntry(x: Double(i), y: val)
        }
        let rampUp = ((blankValues + 1)..<count).map{ (i) -> ChartDataEntry in
            let val = Double(Double(i)/Double(blankValues + 1)) - 1
            print("rampu-up: \(val)")
            return ChartDataEntry(x: Double(i), y: val)
        }
        let allValues = rampDown + rampUp
        let invisible = LineChartDataSet(entries: allValues, label: "invisibleSet")
        let visible = LineChartDataSet(entries: rampUp, label: "visibleSet")
        visible.setColor(UIColor(red: 1.0, green: 0.0, blue: 0.0, alpha: 1.0))
        visible.drawCirclesEnabled = false
        visible.drawValuesEnabled = false
        invisible.setColor(UIColor(red: 1.0, green: 0.0, blue: 0.0, alpha: 0.0))
        invisible.drawCirclesEnabled = false
        invisible.drawValuesEnabled = false
        
        let data = LineChartData(dataSets: [invisible, visible])
        
        let noZeroFormatter = NumberFormatter()
        noZeroFormatter.zeroSymbol = ""
        invisible.valueFormatter = DefaultValueFormatter(formatter: noZeroFormatter)
        
        lineChartView.data = data
}
vilkaaaa

comment created time in 2 hours

starteddanielgindi/Charts

started time in 2 hours

issue commentdanielgindi/Charts

Rounding the corners of bars

It looks like this and a similar pull request - https://github.com/danielgindi/Charts/pull/1917 - have been dead for at least 2 years. Is it worth throwing away all the work they took?

ricburton

comment created time in 3 hours

starteddanielgindi/Charts

started time in 5 hours

starteddanielgindi/Charts

started time in 8 hours

fork dunglevulcanlabs/Charts

Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.

fork in 10 hours

starteddanielgindi/Charts

started time in 10 hours

fork n8tr/ChartsRealm

A Realm.io module for Charts

fork in 11 hours

starteddanielgindi/Charts

started time in 12 hours

issue openeddanielgindi/Charts

Y Axis float value issue

Hello @danielgindi .

I am facing one issue. I am using Bar-chart and in this I need only Integer values to be show in LeftAxis but when I get small value like 2,3 for data. Then left Axis is (Y-Axis) representing the values as in float.

How can I forcefully show the Only Integer on left Axis?

help would be Admirable .

Thanks in Advance

created time in a day

issue commentdanielgindi/Charts

Bar chart: bars are floating

Found the fix: leftAxis.axisMinimum = 0. Even though the left axis is disabled, this fixes the problem.

If Y values are like 0 to 5 means small then it still shows in float. @kevinrenskers is there any other solution and @danielgindi could you please help me too short out this problem?

kevinrenskers

comment created time in a day

starteddanielgindi/Charts

started time in a day

pull request commentdanielgindi/Charts

Add gradient bars for BarChart [master branch]

@larryonoff @liuxuan30 Any chance to update in this week?

larryonoff

comment created time in a day

starteddanielgindi/Charts

started time in a day

starteddanielgindi/Charts

started time in a day

starteddanielgindi/Charts

started time in a day

starteddanielgindi/Charts

started time in a day

starteddanielgindi/Charts

started time in a day

issue openeddanielgindi/Charts

set the color of the curve to gradient?

After setting up the LineChartDataSet, can you set the color of curves to gradient?

created time in a day

fork rideempower/Charts

Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.

fork in 2 days

starteddanielgindi/Charts

started time in 2 days

starteddanielgindi/Charts

started time in 2 days

starteddanielgindi/Charts

started time in 2 days

starteddanielgindi/Charts

started time in 2 days

starteddanielgindi/Charts

started time in 3 days

issue openeddanielgindi/Charts

Modifying the colour of LineChartDataSet

Is there any way to change the colour of LineChartDataSet once it is plotted? For example when a user touches the chart I would like to subdivide the set into two colours

created time in 3 days

starteddanielgindi/Charts

started time in 3 days

starteddanielgindi/Charts

started time in 3 days

starteddanielgindi/Charts

started time in 3 days

more