M/style/Chart~Chart


import Chart from 'M/style/Chart';

Main constructor of the class. Creates a chart style with parameters specified by the user

new Chart()

facade/js/style/Chart.js, line 43
Name Type Description
options. Mx.ChartOptions
  • type {string|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|Chart.schemes} the color set of the chart.If
         value is typeof 'string' you must declare this scheme into 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|ChartVariable|string|Array|Array} chart variables

Extends

  • M.style.Simple

Members

module:M/style/Chart~Chart.DEFAULT{object}

Default options for this style

ORDER

This constant defines the order of style.

Methods

toJSON(){string}

facade/js/style/Chart.js, line 151

This function implements the mechanism to generate the JSON of this instance

updateCanvas()

facade/js/style/Chart.js, line 117

This function updates the canvas of style