Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit14deefb

Browse files
committed
v5.2.0
1 parent575eb29 commit14deefb

File tree

4 files changed

+25
-2
lines changed

4 files changed

+25
-2
lines changed

‎CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#Changelog
22

33

4+
##[5.2.0] - 2023-06-19
5+
###Addded
6+
- Adding support to themes (seehttps://github.com/plotly/angular-plotly.js/issues/152)
7+
48
##[5.1.1] - 2023-06-15
59
###Changed
610
- Adding support to strict version of bundle plotly (seehttps://github.com/plotly/angular-plotly.js/issues/237)

‎README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ The `plotly.js` is bundled within the angular code. To avoid this, please read [
9696
| --------------------------| ----------------------------| -------------------------------------------------| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
9797
|`[data]`|`Array`|`[]`| list of trace objects (seehttps://plot.ly/javascript/reference/)|
9898
|`[layout]`|`Object`|`undefined`| layout object (seehttps://plot.ly/javascript/reference/#layout)|
99+
|`[theme]` |`string` |`'none'` | name of pre-defined theme (see[Using themes](#Using%20themes))
99100
|`[frames]`|`Array`|`undefined`| list of frame objects (seehttps://plot.ly/javascript/reference/)|
100101
|`[config]`|`Object`|`undefined`| config object (seehttps://plot.ly/javascript/configuration-options/)|
101102
|`[revision]`|`Number`|`undefined`| When provided, causes the plot to update when the revision is incremented.|
@@ -179,6 +180,24 @@ Event handlers for specific [`plotly.js` events](https://plot.ly/javascript/plot
179180
will put the user template into the root*\<div\>* of the resulting*plotly.js* plot,
180181
in front of any plotly-generated elements. This could be useful for implementing plot overlays.
181182

183+
184+
##Using themes
185+
186+
There are few pre-defined themes you can use:
187+
* ggplot2
188+
* seaborn
189+
* simple_white
190+
* plotly
191+
* plotly_white
192+
* plotly_dark
193+
* presentation
194+
* xgridoff
195+
* ygridoff
196+
* gridon
197+
198+
These themes were based on[plotly.py](https://github.com/plotly/plotly.py/tree/6f519c8fc459651e1b03704fa83bd66c804f8a67/packages/python/plotly/plotly/package_data/templates)
199+
200+
182201
##Customizing the`plotly.js` bundle
183202

184203
By default, this library bundles`plotly.js` from the peer dependency together within the output. This results on huge outputs, for`plotly.js` itself is~3MB when bundled. It also makes the build (with`ng serve --prod`) really slow, for it minifies everything together.

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"angular-plotly.js",
3-
"version":"5.1.1",
3+
"version":"5.2.0",
44
"license":"MIT",
55
"scripts": {
66
"ng":"ng",

‎projects/plotly/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"angular-plotly.js",
3-
"version":"5.1.1",
3+
"version":"5.2.0",
44
"license":"MIT",
55
"peerDependencies": {
66
"@angular/common":">=15.0.0",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp