We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 992eada commit 1411219Copy full SHA for 1411219
lib/node_modules/@stdlib/plot/charts/base/ctor/lib/title/set.js
@@ -39,8 +39,8 @@ var Title = require( '@stdlib/plot/vega/title/ctor' );
39
function set( value ) {
40
var tmp;
41
if ( isString( value ) ) {
42
- tmp = new Title( this.config.title );
43
- tmp.title = value;
+ tmp = new Title( this.config.title ); // clone the current title instance
+ tmp.text = value;
44
value = tmp;
45
} else if ( !( value instanceof Title ) ) {
46
value = new Title( value ); // note: this accounts for both vanilla objects and cross-realm instances
0 commit comments