@@ -305,7 +305,7 @@ describe('Pie traces', function() {
305305 it ( 'shows multiline title in hole' , function ( done ) {
306306 Plotly . newPlot ( gd , [ {
307307 values : [ 2 , 2 , 2 , 2 ] ,
308- title : 'Test<br >Title' ,
308+ title : { text : 'Test<BR >Title' } ,
309309 hole : 0.5 ,
310310 type : 'pie' ,
311311 textinfo : 'none'
@@ -329,7 +329,7 @@ describe('Pie traces', function() {
329329 it ( 'scales multiline title to fit in hole' , function ( done ) {
330330 Plotly . newPlot ( gd , [ {
331331 values : [ 2 , 2 , 2 , 2 ] ,
332- title : 'Test<br >Title' ,
332+ title : { text : 'Test<BR >Title' } ,
333333 titleposition : 'middle center' ,
334334 titlefont : {
335335 size : 60
@@ -379,7 +379,7 @@ describe('Pie traces', function() {
379379 it ( 'shows title top center if hole is zero' , function ( done ) {
380380 Plotly . newPlot ( gd , [ {
381381 values : [ 2 , 2 , 2 , 2 ] ,
382- title : 'Test<BR>Title' ,
382+ title : { text : 'Test<BR>Title' } ,
383383 titleposition : 'middle center' ,
384384 titlefont : {
385385 size : 12
@@ -395,7 +395,7 @@ describe('Pie traces', function() {
395395 it ( 'shows title top center if titleposition is undefined and no hole' , function ( done ) {
396396 Plotly . newPlot ( gd , [ {
397397 values : [ 2 , 2 , 2 , 2 ] ,
398- title : 'Test<BR>Title' ,
398+ title : { text : 'Test<BR>Title' } ,
399399 titlefont : {
400400 size : 12
401401 } ,
@@ -409,7 +409,7 @@ describe('Pie traces', function() {
409409 it ( 'shows title top center' , function ( done ) {
410410 Plotly . newPlot ( gd , [ {
411411 values : [ 1 , 1 , 1 , 1 , 2 ] ,
412- title : 'Test<BR>Title' ,
412+ title : { text : 'Test<BR>Title' } ,
413413 titleposition : 'top center' ,
414414 titlefont : {
415415 size : 12
@@ -424,7 +424,7 @@ describe('Pie traces', function() {
424424 it ( 'shows title top left' , function ( done ) {
425425 Plotly . newPlot ( gd , [ {
426426 values : [ 3 , 2 , 1 ] ,
427- title : 'Test<BR>Title' ,
427+ title : { text : 'Test<BR>Title' } ,
428428 titleposition : 'top left' ,
429429 titlefont : {
430430 size : 12
@@ -439,7 +439,7 @@ describe('Pie traces', function() {
439439 it ( 'shows title top right' , function ( done ) {
440440 Plotly . newPlot ( gd , [ {
441441 values : [ 4 , 5 , 6 , 5 ] ,
442- title : 'Test<BR>Title' ,
442+ title : { text : 'Test<BR>Title' } ,
443443 titleposition : 'top right' ,
444444 titlefont : {
445445 size : 12
@@ -454,7 +454,7 @@ describe('Pie traces', function() {
454454 it ( 'shows title bottom left' , function ( done ) {
455455 Plotly . newPlot ( gd , [ {
456456 values : [ 4 , 5 , 6 , 5 ] ,
457- title : 'Test<BR>Title' ,
457+ title : { text : 'Test<BR>Title' } ,
458458 titleposition : 'bottom left' ,
459459 titlefont : {
460460 size : 12
@@ -469,7 +469,7 @@ describe('Pie traces', function() {
469469 it ( 'shows title bottom center' , function ( done ) {
470470 Plotly . newPlot ( gd , [ {
471471 values : [ 4 , 5 , 6 , 5 ] ,
472- title : 'Test<BR>Title' ,
472+ title : { text : 'Test<BR>Title' } ,
473473 titleposition : 'bottom center' ,
474474 titlefont : {
475475 size : 12
@@ -484,7 +484,7 @@ describe('Pie traces', function() {
484484 it ( 'shows title bottom right' , function ( done ) {
485485 Plotly . newPlot ( gd , [ {
486486 values : [ 4 , 5 , 6 , 5 ] ,
487- title : 'Test<BR>Title' ,
487+ title : { text : 'Test<BR>Title' } ,
488488 titleposition : 'bottom right' ,
489489 titlefont : {
490490 size : 12
@@ -499,7 +499,7 @@ describe('Pie traces', function() {
499499 it ( 'should be able to restyle title position' , function ( done ) {
500500 Plotly . newPlot ( gd , [ {
501501 values : [ 3 , 2 , 1 ] ,
502- title : 'Test<BR>Title' ,
502+ title : { text : 'Test<BR>Title' } ,
503503 titleposition : 'top left' ,
504504 titlefont : {
505505 size : 12
@@ -522,7 +522,7 @@ describe('Pie traces', function() {
522522 it ( 'does not intersect pulled slices' , function ( done ) {
523523 Plotly . newPlot ( gd , [ {
524524 values : [ 2 , 2 , 2 , 2 ] ,
525- title : 'Test<BR>Title' ,
525+ title : { text : 'Test<BR>Title' } ,
526526 titleposition : 'top center' ,
527527 titlefont : {
528528 size : 14
@@ -548,7 +548,7 @@ describe('Pie traces', function() {
548548 it ( 'correctly positions large title' , function ( done ) {
549549 Plotly . newPlot ( gd , [ {
550550 values : [ 1 , 3 , 4 , 1 , 2 ] ,
551- title : 'Test<BR>Title' ,
551+ title : { text : 'Test<BR>Title' } ,
552552 titleposition : 'top center' ,
553553 titlefont : {
554554 size : 60
@@ -795,7 +795,7 @@ describe('Pie traces', function() {
795795 Plotly . newPlot ( gd , [ {
796796 type : 'pie' ,
797797 values : [ 1 , 2 , 3 ] ,
798- title : 'yo' ,
798+ title : { text : 'yo' } ,
799799 titlefont : { color : 'blue' } ,
800800 titleposition : 'top left'
801801 } ] )
@@ -837,7 +837,7 @@ describe('Pie traces', function() {
837837 Plotly . newPlot ( gd , [ {
838838 type : 'pie' ,
839839 values : [ 1 , 2 , 3 ] ,
840- title : 'yo' ,
840+ title : { text : 'yo' } ,
841841 titlefont : { color : 'blue' } ,
842842 titleposition : 'top left'
843843 } ] )
@@ -846,7 +846,7 @@ describe('Pie traces', function() {
846846 _verifyTitle ( true , false , true , false , false ) ;
847847
848848 return Plotly . restyle ( gd , {
849- title : 'oy' ,
849+ title : { text : 'oy' } ,
850850 'titlefont.color' : 'red' ,
851851 titleposition : 'bottom right'
852852 } ) ;
0 commit comments