wuxudong / react-native-charts-wrapper

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

How to change color of text values in radar chart? #657

Open usama23sep opened 4 years ago

usama23sep commented 4 years ago

Screenshot_1577794079

Here is a snippet of code: xAxis: { $set: { valueFormatter: ['Balance', 'Power', 'Strength', 'cardiorespiratory', 'Agility', 'speed', 'flexibilty', 'coordination'], config: { color: processColor('white'), textColor: processColor('#ffffff'), drawFilled: true, fillColor: processColor('white') }

      }
    }
mdobroggg commented 4 years ago

You can do this with the valueTextColor property:

    dataSets: [
      {
        values: [1000, 10000, 100000, 1000000],
        label: 'Asset Data',
        config: {
          valueFormatter: ['Transportation $100,000'],
          valueTextColor: processColor('white'),
        },
      },
    ],
  };
naxir commented 4 years ago

@mdobroggg valueTextColor change the data color values it will not change the color of these text Balance', 'Power', 'Strength', 'cardiorespiratory', 'Agility', 'speed', 'flexibilty', 'coordination