ChartsOrg / ChartsOrg/Charts

How to set different colour to Y-Axis labels ?

Open
#5,112 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

```
//Y-Left
let yLeftAxis = combinedChartView.leftAxis
yLeftAxis.granularity = 1.0

** yLeftAxis.labelTextColor = .white **

yLeftAxis.labelFont = UIFont.systemFont(ofSize: 8.0,weight: .medium)
yLeftAxis.drawAxisLineEnabled = false
let yValueFormatter = EmotionGraphViewYAxisFomater()
yLeftAxis.valueFormatter = `yValueFormatter`
```

So in above code I want to set multi color to yLeftAxis.labelTextColor like [.red,.yellow, .blue etc....]

Contributor guide

Open the contributing guide

Research direction

Start at the axis API used through combinedChartView.leftAxis, especially labelTextColor, and trace how Y-axis labels are rendered. Check whether the current API or related tests mention per-label colors; done means the issue’s requested red, yellow, and blue label coloring is supported or the limitation is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
data-visualization, mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.