const me = this;
const opts = me.options;
const tz = opts.ticks && opts.ticks.z || 0;
- const gz = opts.grid && opts.grid.z || 0;
+ const gz = valueOrDefault(opts.grid && opts.grid.z, -1);
if (!me._isVisible() || me.draw !== Scale.prototype.draw) {
// backward compatibility: draw has been overridden by custom scale
--- /dev/null
+module.exports = {
+ config: {
+ type: 'bubble',
+ data: {
+ datasets: [
+ {
+ label: '# of Votes',
+ data: [{x: 19, y: 3, r: 3}, {x: 2, y: 2, r: 60}],
+ radius: 100,
+ backgroundColor: 'pink'
+ }
+ ]
+ },
+ options: {
+ plugins: {
+ legend: {
+ display: false
+ }
+ },
+ scales: {
+ y: {
+ ticks: {
+ display: false
+ },
+ grid: {
+ borderColor: 'red',
+ borderWidth: 5
+ }
+ },
+ x: {
+ ticks: {
+ display: false
+ },
+ grid: {
+ borderColor: 'red',
+ borderWidth: 5
+ }
+ }
+ }
+ }
+ },
+
+ options: {
+ canvas: {
+ height: 512,
+ width: 512
+ }
+ }
+};