# Create Chart Gradients from Left to Right with Multi-Color Values

## Environment

<table>
 <tr>
  <td>Product</td>
  <td>Progress® Kendo UI® Chart for jQuery</td>
 </tr>
 <tr>
  <td>Operating System</td>
  <td>Windows 10 64bit</td>
 </tr>
 <tr>
  <td>Visual Studio Version</td>
  <td>Visual Studio 2017</td>
 </tr>
 <tr>
  <td>Preferred Language</td>
  <td>JavaScript</td>
 </tr>
</table>

## Description

How can I create left-to-right gradients with multi-color values in the Chart?

## Solution

The following example demonstrates how to create such gradients with three-color values.

```dojo
  <div id="chart" />
      <script>
        kendo.dataviz.Gradients.series1Gradient = {
          type: "linear",
          stops: [{
            offset: 0,
            color: "#fff",
            opacity: 0.5
          }, {
            offset: 1,
            color: "#000"
          }]
        };

        kendo.dataviz.Gradients.series2Gradient = {
          type: "linear",
          stops: [{
            offset: 0,
            color: "#00acc1",
            opacity: 0.5
          }, {
            offset: 1,
            color: "#80deea"
          }]
        };

        kendo.dataviz.Gradients.series3Gradient = {
          type: "linear",
          stops: [{
            offset: 0,
            color: "#ffbf46",
            opacity: 0.5
          }, {
            offset: 1,
            color: "#ffd78c"
          }]
        };

        $("#chart").kendoChart({
          title: {
            text: "Site Visitors Stats \n /thousands/"
          },
          legend: {
            visible: false
          },
          seriesDefaults: {
            type: "column",

          },
          series: [{
            name: "Total Visits",
            data: [56000, 63000, 74000, 91000, 117000, 138000],
            overlay: {
              gradient: "series1Gradient",
              start: [0, 0.5],
              end: [1, 0.5]
            },
            border: {
              width: 0
            }
          }, {
            name: "Total Visits",
            data: [86000, 23000, 44000, 21000, 57000, 168000],
            overlay: {
              gradient: "series2Gradient",
              start: [0.5, 0],
              end: [0.5, 1]
            },
          }, {
            name: "Unique visitors",
            data: [52000, 34000, 23000, 48000, 67000, 83000],
            overlay: {
              gradient: "series3Gradient",
              start: [0.5, 0],
              end: [0.5, 1]
            },
          }],         
          categoryAxis: {
            categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun"],
            majorGridLines: {
              visible: false
            }
          },
          tooltip: {
            visible: true,
            template: "#= series.name #: #= value #"
          }
        });
      </script>
```

## See Also

* [Chart JavaScript API Reference](https://www.telerik.com/kendo-jquery-ui/documentation/api/dataviz/ui/chart)
* [Drawing API](https://www.telerik.com/kendo-jquery-ui/documentation/framework/drawing/overview)
* [Aggregate Data in Pie Charts](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/pie-chart-aggregates)
* [Draw on Scatter Plots Surface](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/draw-on-scatter-plots)
* [Expand Clickable Area of Points](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/expand-clickable-area)
