with

Usage: Allows for customization of chart configuration before rendering.

with(configObject)
Params Type Units
configObject Object N/A

You can pass in the following property values into your config object:

Properties Type
title String
theme String
fontStyle String
fontSize Number
xAxisLabel String
yAxisLabel String

For color theme, see colors themes.

Examples:

tld3.make('ScatterChart')  
       .using(data)
       .in('#scatterchart')
       .with({title: 'New Title', fontStyle: 'Comic Sans', fontSize: 12});
tld3.make('WaffleChart')  
       .using(data)
       .in('#wafflechart')
       .with({title: 'My Waffle Title', xAxisLabel: 'something x-ey', yAxisLabel: 'something y-ey'});