You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `opacity` attribute on error bars has been removed. Use the alpha channel of the `color` attribute instead.
175
170
176
-
Here's an example that was previously in the Plotly.js docs, and which uses `opacity`.
171
+
Here's an example that was previously in the Plotly.js docs, and which uses `opacity`, followed by the same example rewritten to use the alpha channel on a `rgba` color value.
177
172
178
173
```
179
174
error_y: {
@@ -186,7 +181,6 @@ Here's an example that was previously in the Plotly.js docs, and which uses `opa
186
181
}
187
182
188
183
```
189
-
And here it is rewritten to use the alpha channel on a `rgba` color value.
190
184
191
185
```
192
186
error_y: {
@@ -207,8 +201,7 @@ Support for using jQuery events has been removed. Use [Plotly.js events](/javasc
207
201
208
202
`pointcloud` has been removed. Use `scattergl` instead.
209
203
210
-
Here's an example that was previously in the Plotly.js docs and which uses `pointcloud`:
211
-
204
+
Here's an example that was previously in the Plotly.js docs and which uses `pointcloud`, followed by the same example rewritten to use `scattergl`:
The `plot3dPixelRatio` option on `config` for setting the pixel ration during WebGL image export has been removed. Use `plotGlPixelRatio` instead.
264
255
265
256
257
+
## `title` Attribute as a String
258
+
259
+
The `title` attribute can no longer be set as a string. Use `title.text` instead. Here's an example of how to set the title using `title.text`:
260
+
261
+
```js
262
+
var data = [
263
+
{
264
+
x: [1, 2, 3, 4, 5],
265
+
y: [1, 2, 4, 8, 16]
266
+
}
267
+
];
268
+
269
+
var layout = {
270
+
title: { text:"My chart title" },
271
+
xaxis: {
272
+
title: {
273
+
text:"x-axis title"
274
+
}
275
+
},
276
+
yaxis: { title: { text:"y-axis title" } }
277
+
};
278
+
279
+
Plotly.newPlot("myDiv", data, layout);
280
+
```
281
+
266
282
### `titlefont`,`titleposition`, `titleside`, and `titleoffset` Attributes
267
283
268
284
The `titlefont`,`titleposition`, `titleside`, and `titleoffset` attributes are removed. Replace them with `title.font`, `title.position`, `title.side`, and `title.offset`.
269
285
270
-
Here's an example that uses `titlefont`:
286
+
Here's an example that uses `titlefont`, followed by the same example rewritten to use `title.font`:
0 commit comments