wuxudong / react-native-charts-wrapper

a react native charts wrapper (support android & iOS)
2.44k stars 657 forks source link

How to change label text color? #868

Closed bsor-dev closed 2 years ago

bsor-dev commented 2 years ago
dataSets: [
                {
                  label: 'X',
                  config: {
                    drawValues: false,
                    mode: 'LINEAR',
                    drawCircles: false,
                    lineWidth: 1,
                    color: processColor('#FF0C0C'),
                    colors: processColor('#FF0C0C'),
                    circleRadius: 20,
                    valueTextSize: 200,
                    valueTextColor: processColor('#FF0C0C'),
                  },
                  values: values.x,
                },

Can't find settings in config no proper documentation

bsor-dev commented 2 years ago

Found it sigh!

legend={{
              enabled: true,
              textSize: 14,
              form: 'SQUARE',
              formSize: 14,
              xEntrySpace: 10,
              yEntrySpace: 5,
              formToTextSpace: 5,
              wordWrapEnabled: true,
              maxSizePercent: 0.5,
            }}