Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 08:48
    iOSChartsNewbie edited #4859
  • 08:44
    iOSChartsNewbie opened #4859
  • 08:36
    sergeydi opened #4858
  • Jul 05 16:41
    lionelmichaud edited #4857
  • Jul 05 16:41
    lionelmichaud opened #4857
  • Jul 04 09:37
    paulobfsilva commented #4836
  • Jul 04 09:35
    paulobfsilva commented #4836
  • Jul 03 06:49
    Prashant-Sah edited #4856
  • Jul 03 06:49
    Prashant-Sah edited #4856
  • Jul 03 06:49
    Prashant-Sah edited #4856
  • Jul 03 06:46
    Prashant-Sah opened #4856
  • Jul 02 15:41
    aliuhongliang edited #4855
  • Jul 02 15:40
    aliuhongliang opened #4855
  • Jul 02 11:37
    cnjsyyb commented #4835
  • Jul 02 11:37
    cnjsyyb commented #4835
  • Jul 01 16:06
    CavalcanteLeo edited #4854
  • Jul 01 16:05
    CavalcanteLeo edited #4854
  • Jul 01 16:02
    CavalcanteLeo opened #4854
  • Jul 01 14:34
    FelixHerrmann commented #4853
  • Jul 01 13:58
    panchocantu edited #4853
M.Awais Fayyaz
@AwaisFayyaz
Hi every one.

I am trying to show positive as well as negative values in a bar chart. I . I am using charts 3.1 on xcode 9.4.1. Can anybody tell me how to acheive it. This answer suggests to set logical values and use formatter for showing values as negative.

But i don't know how to set logical values and use formatter for displaying neg values.

Any help would be much appreciated.

Thanks

Pierre-Marc Airoldi
@petester42
I don’t think I quite understand could you please provide an example dataset for the chart you’re trying to create?
M.Awais Fayyaz
@AwaisFayyaz
@petester42 . Thanks for the reply. Currently, can you help me with this comment?
I am trying to set fixed intervals for y axis.
Peter Stenger
@reteps
Hello everyone! I am trying to resize the chart boundaries based on which datasets are visible. I poked around and found lowestVisibleX and highestVisibleY. would I use these to resize the chart boundaries in the X direction?
Peter Stenger
@reteps
update: it did not work.
Victor Monteiro
@victorvmz21
hey guys ..
I need a help.
I am trying to use barChart pod
and this error message apperas
appears*
BarChartView?' has no member 'descriptionT
descriptionText
what should I substitute this property descriptionText?
Pierre-Marc Airoldi
@petester42
I think what you’re looking for is chartDescription
Victor Monteiro
@victorvmz21
yes....
thanks it works
danwguy
@danwguy
Howdy, I am kinda new to iOS. I'm an android developer. I have been using the MPAndroidCharts in android for a while and have a good feel for it, but I am running into an issue with the iOS version. I am trying to follow the tutorial for updating the data in a chart but the examples show using dataSet.replaceEntries I can't seem to find that method. It doesn't exist. I pulled the master branch and imported into my Xcode project, but I can't replace the values in the chartData
I read through some documentation and it looks like that change is in 3.3 but master is on 3.2. Is there a way to get 3.3 or is there a way to replace the values in the ChartDataSet in 3.2?
Pierre-Marc Airoldi
@petester42
Just set the data on the chart again.
It should update.
danwguy
@danwguy
When I do that the chart doesn't redraw. I have tried using chartView.data?.notifyDataSetChanged() and chartView.notifyDataSetChanged(), but the chart data doesn't update
I have a SegmentControl that has 2 values 7 days and 21 days, on changing it I change a var chartMode from 7 to 21, then call my setChartData function which loads data from CoreData based on the chartMode. However when clicking it I am still only seeing 7 days, it doesn't change the chart to 21 days. I know the SegmentControl is working, but the chart doesn't update with new data
Pierre-Marc Airoldi
@petester42
Hmm. That’s weird. It should. Without a real example we can’t really help.
Lucasark
@Lucasark
Hello everyone, I am tring to compile legace code and don`t any sucess. I am kind new in Swift, so any help will be greatfull
image.png
I have this problem. I did a lot of thinks.
Kuba Podkalicki
@kubaPod

Hi guys, I am sorry if this is not the right place to ask but it does not fit SO or Github Issues.

I can install Charts with CocoaPods, symbols lookup works, I use e.g. PieChartView in a ViewController.swift, everything builds without a problem.

But I don't see Chart entries in Library menu and I am stuck with getting anything working.
Same with the ChartsDemo-macOS project, it builds but there is nothing but defaults in Library and there isn't any window created once the project is built (maybe I am confused about what should happen after Run)
I am new to Swift and macOS programming so that could be part of the problem.
I am on XCode 11.2.1 Mojave 10.14.4

Danilo Soares Aliberti
@dsaliberti
Hi guys :wave:
I'm working in a Combined bar and line chart and it was working with mock data but now I'm fetching from the API and it stopped working.
It's now showing only 1 entry on the line layer.. bars are correct..
I've checked and the Dataset and has the correct amount of entries.. I have no idea what happened 🤔
any help I appreciate
Danilo Soares Aliberti
@dsaliberti
solved
my mistake was
xAxis.axisMaximum = Double(labels.count)
🙃 thanks