M/impl/style/Chart~Chart


import Chart from 'M/impl/style/Chart';

Openlayers implementation of style chart

new Chart()

impl/ol/style/Chart.js, line 253
Name Type Description
options. Mx.ChartOptions

(SAME AS M.style.Chart)

  • type {string|M.style.chart.types} the chart type
  • radius {number} the radius of the chart. If chart type is 'bar' type this field
        will limit the max bar height
  • offsetX {number} chart x axis offset
  • offsetY {number} chart y axis offset
  • stroke.
    • color {string} the color of the chart stroke
    • width {number} the width of the chart stroke
  • fill3DColor: {string} the fill color of the PIE_3D cylinder
  • scheme {string|Array|M.style.chart.schemes} the color set of the chart.If
        value is typeof 'string' you must declare this scheme into M.style.chart.schemes
        If you provide less colors than data size
    the colors will be taken from MOD operator:
          mycolor = userColors[currentArrayIndex % userColors.length]
  • rotateWithView {bool} determine whether the symbolizer rotates with the map.
  • animation {bool} this field is currently ignored [NOT IMPLEMENTED YET]
  • variables {object|M.style.chart.Variable|string|Array |Array<M.style.chart.Variable>} the chart variables

Methods

drawGeometryToCanvas(contextVar)

impl/ol/style/Chart.js, line 297

TODO [REV] Refactor This function updates the canvas of style of canvas

Name Type Description
contextVar CanvasRenderingContext2D

CanvasRenderingContext2D

updateCanvas(canvas)

impl/ol/style/Chart.js, line 281

This function updates the canvas of style of canvas

Name Type Description
canvas HTMLCanvasElement

canvas of style