core plot custom Theme?

前端 未结 4 452
失恋的感觉
失恋的感觉 2021-02-04 12:40

I\'m using Core-Plot for a trend chart in an iPhone app and haven\'t found how to customize the background. I can create a theme using the built-in themes, like kCPPlainWhiteThe

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-04 13:01

    Themes are just a convenient way to set a lot of the style properties at once. You can set any of them individually to customize the look. Any time you want an area to be transparent, you can set its fill to nil. Same with line styles--set them to nil to prevent a line from being drawn.

    There are two "background" areas that you might be concerned with. The graph has a fill as does the plot area. The plot area is the region where the plots are drawn. Set the fill property on both of these to nil to make the background transparent.

提交回复
热议问题