Search code examples
extjschartssencha-touchlegendnames

Sencha Touch chart legend names change


I want to change the legend names of the chart in Sencha touch. By default it gives the data store fields names. When I have change title of yField in ExJs it works, but in Sencha touch it does not work.

xField: 'name',
yField: 'data2'
title : ['dfb'],

How should I solve my problem? I want to change the legend names in Sencha touch chart.


Solution

  • For changing the title, change the title inside axes. And instead changing yField, change it like title: ['MyDesiredName']