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
Copy file name to clipboardExpand all lines: README.md
+28-24Lines changed: 28 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
The forgiving plotting API designed for use with [Data-Forge](https://github.com/data-forge/data-forge-ts).
4
4
5
+
Data-Forge Plot is now a simple wrapper for [the Plot library](https://www.npmjs.com/package/plot).
6
+
5
7
Use Data-Forge Plot to quickly and conveniently render charts from your data in JavaScript or TypeScript. It is an abstraction layer that connects Data-Forge with JavaScript visualization libraries so that it's easy to plot charts from your data.
6
8
7
9
Why not do your data wrangling, analysis and visualization entirely in JavaScript? To support my effort please buy or help promote my book
@@ -15,6 +17,24 @@ Please join the conversation on [Gitter](https://gitter.im/data-forge)
15
17
16
18
## Breaking changes
17
19
20
+
As of version 1.0.0 Data-Forge Plot has been gutted and reimplimented in terms of the [Plot library](https://www.npmjs.com/package/plot) (which is very similar). DFP is now just a wrapper for Plot to ease my maintence burden.
21
+
22
+
The function `exportWeb` has been removed because it is to difficult to maintain.
23
+
24
+
If you want to use this in the browser please use the [Plot library](https://www.npmjs.com/package/plot) instead, e.g.:
25
+
26
+
```javascript
27
+
constdataframe=...
28
+
constplotConfig= { ... };
29
+
constaxisMap= { ... };
30
+
import { plot } from"plot";
31
+
import"@plotex/render-dom";
32
+
plot(dataframe.toArray(), plotConfig, axisMap)
33
+
.renderDOM(document.getElementByID("a-chart");
34
+
```
35
+
36
+
--
37
+
18
38
As of version 0.4.0 the Nightmare/Electron depenency has been removed along with the `renderImage` function.
19
39
20
40
The `renderImage` function has been moved to the separate library [@data-forge-plot/render](todo). This has been removed due to the size that the Electron dependency adds to this package. In the future you you will have to install the separate package to render a plot to an image.
@@ -26,7 +46,6 @@ Please note that the sample code below to see how the new library is installed a
26
46
27
47
- To simply and conveniently from a series or dataframe to chart.
28
48
- To create charts and visualizations in Node.js and the browser.
29
-
- To export web-based interactive charts that can easily be hosted under a web-server.
30
49
- To be able to serialize a chart to JSON and then reinstantiate it from the JSON in a web-app.
31
50
- To separate configuration and data definition to make it easy to reuse charts.
32
51
- To configure charts in JSON or fluent API.
@@ -37,15 +56,16 @@ Some instructions for using Data-Forge Plot. These instructions are for JavaScri
0 commit comments