New to Kendo UI for jQueryStart a free 30-day trial

Series.markers.to

configuration

The chart series marker configuration for the "to" point. Supported for "rangeArea" and "verticalRangeArea" series.

<div id="chart"></div>
<script>
  $("#chart").kendoChart({
    series: [{
      type: "rangeArea",
      markers: {
        to: {
          visible: true,
          background: "green",
          size: 30
        }
      },
      data: [[1, 2], [3, 5], [1, 4]]
    }]
  });
</script>

The background color of the markers.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "rangeArea",
    markers: {
      to: {
        visible: true,
        background: "green"
      }
    },
    data: [
      { from: 1, to: 2 },
      { from: 2, to: 3 },
      { from: 3, to: 4 }
    ]
  }]
});
</script>

The border of the markers.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "rangeArea",
    markers: {
      to: {
        visible: true,
        border: {
          color: "blue",
          width: 2
        }
      }
    },
    data: [
      { from: 1, to: 2 },
      { from: 2, to: 3 },
      { from: 3, to: 4 }
    ]
  }]
});
</script>

The rotation angle of the markers.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "rangeArea",
    markers: {
      to: {
        visible: true,
        type: "square",
        rotation: 45
      }
    },
    data: [
      { from: 1, to: 2 },
      { from: 2, to: 3 },
      { from: 3, to: 4 }
    ]
  }]
});
</script>

series.markers.to.size

Number|Function

The marker size in pixels.

Default: 6

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "rangeArea",
    markers: {
      to: {
        visible: true,
        size: 15
      }
    },
    data: [
      { from: 1, to: 2 },
      { from: 2, to: 3 },
      { from: 3, to: 4 }
    ]
  }]
});
</script>

series.markers.to.type

String|Function

The markers shape.

The supported values are:

  • "circle" - the marker shape is circle.
  • "square" - the marker shape is square.
  • "triangle" - the marker shape is triangle.
  • "cross" - the marker shape is cross.

Default: "circle"

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "rangeArea",
    markers: {
      to: {
        visible: true,
        type: "triangle"
      }
    },
    data: [
      { from: 1, to: 2 },
      { from: 2, to: 3 },
      { from: 3, to: 4 }
    ]
  }]
});
</script>

If set to true the chart will display the series markers. By default chart series markers are displayed.

Default: false

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "rangeArea",
    markers: {
      to: {
        visible: true
      }
    },
    data: [
      { from: 1, to: 2 },
      { from: 2, to: 3 },
      { from: 3, to: 4 }
    ]
  }]
});
</script>

A function that can be used to create a custom visual for the markers. The available argument fields are:

  • rect - the kendo.geometry.Rect that defines where the visual should be rendered.
  • options - the marker options.
  • createVisual - a function that can be used to get the default visual.
  • category - the category of the marker point.
  • dataItem - the dataItem of the marker point.
  • value - the value of the marker point.
  • sender - the chart instance.
  • series - the series of the marker point.
<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "rangeArea",
    markers: {
      to: {
        visible: true,
        visual: function(e) {
          var rect = new kendo.geometry.Rect([0, 0], [10, 10]);
          var path = kendo.drawing.Path.fromRect(rect, {
            fill: { color: "blue" },
            stroke: { color: "black" }
          });
          return path;
        }
      }
    },
    data: [
      { from: 1, to: 2 },
      { from: 2, to: 3 },
      { from: 3, to: 4 }
    ]
  }]
});
</script>