Problem with Line chart

Hi, I have created line chart in my cuba project. But I want to set horizontal (X-AXIS where I defined the categoryField) value with the table column name. And want to set horizantal and vertical line name. Kindly help on the same.

Hi,
Could you explain in more details relation of table columns and chart data? As a simple solution, I can suggest using a ListProvider with MapDataItems. In this case, you can easily convert any data to suitable for your chart. The example of MapDataItem usage see here.
To change axes titles, you can use the title attribute:

  • Inside categoryAxis element to change a title of X axis, for example:

<chart:categoryAxis dashLength="1"
                                title="categoryAxis"
                                minorGridEnabled="true"></chart:categoryAxis>
  • Inside nested in a categoryAxis axis elements to change a title of Y axes
[code]

chart:valueAxes
<chart:axis id=“v1”
title=“valueAxes”
axisAlpha=“0”
ignoreAxisWidth=“true”
position=“LEFT”/>
</chart:valueAxes>

[/code]
Regards,
Gleb