Skip to content

Commit d81e598

Browse files
committed
apply chart-studio.plotly.com and other fixups
1 parent 9959cb8 commit d81e598

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/plot_api/plot_config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ var configAttributes = {
3434
valType: 'string',
3535
dflt: '',
3636
description: [
37-
'When set it determines base URL e.g. \'https://plotly.com\' for',
38-
'the \'Edit in Chart Studio\' (aka sendDataToCloud) mode bar button',
37+
'When set it determines base URL for',
38+
'the \'Edit in Chart Studio\' `showEditInChartStudio`/`showSendToCloud` mode bar button',
3939
'and the showLink/sendData on-graph link.',
40-
'To enable sending your data to Plotly\'s public cloud, you need to',
40+
'To enable sending your data to Chart Studio Cloud, you need to',
4141
'set both `plotlyServerURL` to \'https://chart-studio.plotly.com\' and',
4242
'also set `showSendToCloud` to true.'
4343
].join(' ')
@@ -265,7 +265,7 @@ var configAttributes = {
265265
dflt: false,
266266
description: [
267267
'Should we include a ModeBar button, labeled "Edit in Chart Studio",',
268-
'that sends this chart to plotly.com (formerly plot.ly) or another plotly server',
268+
'that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server',
269269
'as specified by `plotlyServerURL` for editing, export, etc? Prior to version 1.43.0',
270270
'this button was included by default, now it is opt-in using this flag.',
271271
'Note that this button can (depending on `plotlyServerURL` being set) send your data',

test/jasmine/tests/config_test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ describe('config argument', function() {
505505
Plotly.plot(gd, [], {})
506506
.then(function() {
507507
expect(gd._context.plotlyServerURL).not.toBe('https://plot.ly');
508-
expect(gd._context.plotlyServerURL).not.toBe('https://plotly.com');
508+
expect(gd._context.plotlyServerURL).not.toBe('https://chart-studio.plotly.com');
509509
expect(gd._context.plotlyServerURL).toBe('');
510510

511511
Plotly.Plots.sendDataToCloud(gd);
@@ -515,15 +515,15 @@ describe('config argument', function() {
515515
.then(done);
516516
});
517517

518-
it('should be able to connect to plotly cloud when set to https://plotly.com', function(done) {
518+
it('should be able to connect to Chart Studio Cloud when set to https://chart-studio.plotly.com', function(done) {
519519
Plotly.plot(gd, [], {}, {
520-
plotlyServerURL: 'https://plotly.com'
520+
plotlyServerURL: 'https://chart-studio.plotly.com'
521521
})
522522
.then(function() {
523-
expect(gd._context.plotlyServerURL).toBe('https://plotly.com');
523+
expect(gd._context.plotlyServerURL).toBe('https://chart-studio.plotly.com');
524524

525525
Plotly.Plots.sendDataToCloud(gd);
526-
expect(form.action).toBe('https://plotly.com/external');
526+
expect(form.action).toBe('https://chart-studio.plotly.com/external');
527527
expect(form.method).toBe('post');
528528
})
529529
.catch(failTest)

0 commit comments

Comments
 (0)