make

Usage: Determines the type of chart to produce

make(chartType)
Params Type Units
chartType String N/A

Options:

  • 'BarChart'
  • 'BarChartLeft'
  • 'LineChart'
  • 'ScatterChart'
  • 'DonutChart'

Note: For a multi-line chart, see updateTimeFormat. It is very similar to line chart with one additional method chain.

Examples:

tld3.make('ScatterChart') // creates a scatter chart
    .using(data)
    .in('#scatterchart');
tld3.make('LineChart') // creates a scatter chart
    .using(data)
    .in('#linechart');
tld3.make('DonutChart') // creates a scatter chart
    .using(data)
    .in('#donutchart');