Skip to content

Conversation

@thierryH91200
Copy link
Contributor

@thierryH91200 thierryH91200 commented Feb 28, 2017

Demo : https://github.com/thierryH91200/Charts-log + https://github.com/thierryH91200/Charts

I added the possibility of having axes log/lin, lin/log or log/log

To implement it:

first step initializes the axis OX / OY axes

lineChartView.xAxis.logarithmicEnabled = true/false
lineChartView.leftAxis.logarithmicEnabled = true/false

second step transform datas into log10

dataEntriesSet.append(ChartDataEntry(x: log10(x), y: log10(y))
or

let x1  = logAxeOX == true ? log10( x ) : x
let y1  = logAxeOY == true ? log10( y ) : y
dataEntriesSet.append(ChartDataEntry(x: x1, y: y1))

In option

possibility of modifying the grid:

lineChartView.xAxis.stepsAxis = [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0])
lineChartView.xAxis.stepsLabels = [true, false, false, false, false, false, false, false, false]

lineChartView.leftAxis.stepsLabels = [true, false, false, false, false, false, false, false, false]
lineChartView.leftAxis.stepsAxis = [1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 , 9.0]

possibility of modifying the grid with stick

lineChartView.xAxis.stick = false or true
lineChartView.leftAxis.stick = false or true

possibility of modifying the grid with stick major

lineChartView.xAxis.stickMajorEnabled = false or true
lineChartView.leftAxis.stickMajorEnabled = false or true

The rest is as usual

@sbromberger
Copy link

Is there any possibility of getting this (or something like it) merged?

@liuxuan30
Copy link
Member

yes, but as you could see, almost every major contributor is busy with their job/home. So I'm sorry we have to delay everything.

I'd hope move all general questions to stack overflow so we could focus on PRs and bug fix rather than spending time to check the inbox about different new issues.

@sbromberger
Copy link

yes, but as you could see, almost every major contributor is busy with their job/home. So I'm sorry we have to delay everything.

I understand the nature of open source, as I maintain several reasonably-popular projects myself, but at this point when PRs are going on 18 months, it really appears as if this project is abandoned. Thanks for the insight. I'll find another way to do what I need.

@liuxuan30
Copy link
Member

liuxuan30 commented Jun 22, 2018

@sbromberger I would admit it's very slow, but not abandoned. The author is not active for a very long time, so only me and 2 other folks maintaining this repo.

As some PRs is introducing a big change, which requires a lot of time to sit down and review, and make sure it does not break anything. And time is what we all lack. Sorry about the fact.

Some PRs just came up before Swift 4 and other refactor, and we also need the contributor to fix the conflicts, or we have to do it after we finish other stuff.

But you can see if we got some time, we would do some work. You can check out here https://github.com/danielgindi/Charts/projects

@bguidolim
Copy link

+1 for this

@CavalcanteLeo
Copy link

is this available already?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants