scaleType: "linear", // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance
show: true,
position: "left",
- horizontal: false,
id: "y-axis-1",
// grid line settings
scaleType: "linear", // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance
show: true,
position: "right",
- horizontal: false,
id: "y-axis-2",
// grid line settings
scaleType: "linear", // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance
show: true,
position: "left",
- horizontal: false,
id: "y-axis-1",
// grid line settings
scaleType: "linear", // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance
show: true,
position: "right",
- horizontal: false,
id: "y-axis-2",
// grid line settings
scaleType: "linear", // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance
show: true,
position: "left",
- horizontal: false,
id: "y-axis-1",
// grid line settings
scaleType: "linear", // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance
show: true,
position: "right",
- horizontal: false,
id: "y-axis-2",
// grid line settings
scales: {
xAxes: [{
scaleType: "dataset", // scatter should not use a dataset axis
- show: true,
+ display: true,
position: "bottom",
- horizontal: true,
id: "x-axis-1", // need an ID so datasets can reference the scale
// grid line settings
scaleType: "linear", // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance
show: true,
position: "left",
- horizontal: false,
id: "y-axis-1",
// grid line settings
scales: {
xAxes: [{
scaleType: "dataset", // scatter should not use a dataset axis
- show: true,
+ display: true,
position: "bottom",
- horizontal: true,
id: "x-axis-1", // need an ID so datasets can reference the scale
// grid line settings
scaleType: "linear", // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance
show: true,
position: "left",
- horizontal: false,
id: "y-axis-1",
// grid line settings
// Actualy draw the scale on the canvas
// @param {rectangle} chartArea : the area of the chart to draw full grid lines on
draw: function(chartArea) {
- if (this.options.show) {
+ if (this.options.display) {
var setContextLineSettings;
var hasZero;
this.labelRotation = 0;
- if (this.options.show) {
+ if (this.options.display) {
var originalLabelWidth = helpers.longestText(this.ctx, labelFont, this.labels);
var cosRotation;
var sinRotation;
// Actualy draw the scale on the canvas
// @param {rectangle} chartArea : the area of the chart to draw full grid lines on
draw: function(chartArea) {
- if (this.options.show) {
+ if (this.options.display) {
var setContextLineSettings;
scales: {
xAxes: [{
scaleType: "linear", // scatter should not use a dataset axis
- show: true,
+ display: true,
position: "bottom",
- horizontal: true,
id: "x-axis-1", // need an ID so datasets can reference the scale
// grid line settings
scaleType: "linear", // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance
show: true,
position: "left",
- horizontal: false,
id: "y-axis-1",
// grid line settings