Code Monkey home page Code Monkey logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Edit: If you actually remove the borderLineStyle from the CPTPieChart you will 
get the border as specified in the swatchBorderLineStyle... it is simply hidden 
below the borderLineStyle specified in teh CPTPieChart

Original comment by [email protected] on 26 Nov 2013 at 3:47

from core-plot.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
I attached a Screenshot.

As you can see the pieChart has a white Border with a 2.0f lineWidth.
The swatches in the legend get the same border assigned...even though I 
specified it to be different.

And here comes another "problem".
What if I actually want to have a different border for each swatch?
I do not need this right now, but it would be nice.

With that said: Thank you very muhc for your great library. You did a great 
job. Thanks a lot!

Original comment by [email protected] on 26 Nov 2013 at 3:56

Attachments:

from core-plot.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
This is working as designed. The legend swatch is drawn first with the given 
fill and border and then the plot draws over top with additional elements 
depending on the plot type. The pie chart uses the pie chart border and slice 
fill for the swatch.

We can add configuration options to customize the pie chart swatches.

You can use the -legend:shouldDrawSwatchAtIndex:forPlot:inRect:inContext: 
legend delegate method to draw custom legend swatches. We can add new legend 
delegate methods to customize the swatch fills and borders without resorting to 
custom drawing.

Original comment by [email protected] on 27 Nov 2013 at 1:03

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from core-plot.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Thanks for clearifying this to me.
It would be great if you'd add thie once you find the time :)

Thanks in advance

Original comment by [email protected] on 27 Nov 2013 at 7:01

from core-plot.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024

Original comment by [email protected] on 21 Dec 2013 at 1:53

  • Changed state: Started

from core-plot.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
This issue was closed by revision abd3486e2ba0.

Original comment by [email protected] on 21 Dec 2013 at 5:15

  • Changed state: Fixed

from core-plot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.