Skip to content

Commit bd3857b

Browse files
committed
build - v5.0.0 with new dual-license
1 parent c4d3650 commit bd3857b

File tree

6 files changed

+103
-35
lines changed

6 files changed

+103
-35
lines changed

LICENSE

Lines changed: 80 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,80 @@
1-
The MIT License (MIT)
2-
3-
Copyright (c) 2018 ApexCharts
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in
13-
all copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
1+
## 📄 License Options for ApexCharts
2+
3+
ApexCharts is offered under a **dual-license model** to support individuals, startups, and commercial products of all sizes.
4+
5+
---
6+
7+
### 🔓 Community License (Free)
8+
9+
For individuals, non-profits, educators, and small businesses with **less than $2 million USD in annual revenue**.
10+
11+
✅ What’s allowed:
12+
13+
- Personal, educational, or non-profit use
14+
- Commercial use by small orgs (< $2M annual revenue)
15+
- Modifications and redistribution (with attribution)
16+
17+
🚫 Not allowed:
18+
19+
- Use by companies or entities over $2M/year revenue
20+
- Use in competing charting products
21+
- Sublicensing under different terms
22+
23+
➡ By using ApexCharts under this license, you confirm that **you qualify as a Small Organization**.
24+
25+
---
26+
27+
### 💼 Commercial License (Paid)
28+
29+
Required if **you or your affiliated organization earns $2 million USD or more per year**.
30+
31+
✅ What's included:
32+
33+
- Use in internal tools and commercial applications
34+
- Modifications and app-level distribution
35+
- 12-month subscription with updates & support
36+
37+
🚫 Not allowed:
38+
39+
- Redistribution in toolkits, SDKs, or platforms
40+
- Use by unlicensed developers
41+
- Competing charting products
42+
43+
---
44+
45+
### 🔄 OEM / Redistribution License (Paid)
46+
47+
Required if you are **embedding ApexCharts into a product or platform used by other people**, such as:
48+
49+
- No-code dashboards
50+
- Developer platforms
51+
- Embedded BI tools
52+
- White-labeled apps or SDKs
53+
54+
✅ What's included:
55+
56+
- Redistribution rights for 1 application or product
57+
- 12-month subscription with updates & support
58+
59+
✅ OEM **not required** if your app simply renders static charts and users **cannot** configure or interact with them.
60+
61+
---
62+
63+
### ⚠️ License Acceptance
64+
65+
By installing ApexCharts (e.g., via `npm install apexcharts`), you are agreeing to the applicable license based on your usage:
66+
67+
- Community License (if under $2M revenue)
68+
- Commercial License (if over $2M revenue)
69+
- OEM License (if redistributing to third-party users)
70+
71+
---
72+
73+
### 🛠 Need a License or Have Questions?
74+
75+
📧 Contact us at [[email protected]](mailto:[email protected])
76+
📚 Read full license agreements here: [https://apexcharts.com/license](https://apexcharts.com/license)
77+
78+
---
79+
80+
Thank you for supporting ApexCharts! Your licensing helps keep it free and open for individuals and small teams.

dist/apexcharts.amd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apexcharts.common.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apexcharts.esm.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apexcharts.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* ApexCharts v4.7.0
2+
* ApexCharts v5.0.0
33
* (c) 2018-2025 ApexCharts
44
* Released under the MIT License.
55
*/
@@ -11542,6 +11542,9 @@
1154211542
}
1154311543
if (w.config.xaxis.labels.hideOverlappingLabels && drawnLabels.length > 0) {
1154411544
var prev = drawnLabelsRects[drawnLabelsRects.length - 1];
11545+
if (w.config.xaxis.labels.trim && w.config.xaxis.type !== 'datetime') {
11546+
return label;
11547+
}
1154511548
if (label.x < prev.textRect.width / (w.globals.rotateXLabels ? Math.abs(w.config.xaxis.labels.rotate) / 12 : 1.01) + prev.x) {
1154611549
label.text = '';
1154711550
}
@@ -16067,6 +16070,13 @@
1606716070
}
1606816071
}
1606916072
if (correctedLabels.drawnextLabel) {
16073+
if (textAnchor === 'middle') {
16074+
if (x === w.globals.gridWidth) {
16075+
// last label - might get cropped
16076+
// fixes https://github.com/apexcharts/apexcharts.js/issues/5036
16077+
textAnchor = 'end';
16078+
}
16079+
}
1607016080
dataLabelText = graphics.drawText({
1607116081
width: 100,
1607216082
height: parseInt(dataLabelsConfig.style.fontSize, 10),
@@ -18141,7 +18151,7 @@
1814118151
gl.dom.elGridRect = graphics.drawRect(-strokeSize / 2 - 2, -strokeSize / 2 - 2, gl.gridWidth + strokeSize + 4, gl.gridHeight + strokeSize + 4, 0, '#fff');
1814218152
gl.dom.elGridRectBar = graphics.drawRect(-strokeSize / 2 - barWidthLeft - 2, -strokeSize / 2 - 2, gl.gridWidth + strokeSize + barWidthRight + barWidthLeft + 4, gl.gridHeight + strokeSize + 4, 0, '#fff');
1814318153
var markerSize = w.globals.markers.largestSize;
18144-
gl.dom.elGridRectMarker = graphics.drawRect(-markerSize, -markerSize, gl.gridWidth + markerSize * 2, gl.gridHeight + markerSize * 2, 0, '#fff');
18154+
gl.dom.elGridRectMarker = graphics.drawRect(Math.min(-strokeSize / 2 - barWidthLeft - 2, -markerSize), -markerSize, gl.gridWidth + Math.max(strokeSize + barWidthRight + barWidthLeft + 4, markerSize * 2), gl.gridHeight + markerSize * 2, 0, '#fff');
1814518155
gl.dom.elGridRectMask.appendChild(gl.dom.elGridRect.node);
1814618156
gl.dom.elGridRectBarMask.appendChild(gl.dom.elGridRectBar.node);
1814718157
gl.dom.elGridRectMarkerMask.appendChild(gl.dom.elGridRectMarker.node);
@@ -27421,7 +27431,7 @@
2742127431
visibleSeries: visibleSeries
2742227432
});
2742327433
if (!w.globals.isBarHorizontal) {
27424-
if (dataLabelsObj.dataLabelsPos.dataLabelsX + barWidth < 0 || dataLabelsObj.dataLabelsPos.dataLabelsX - barWidth > w.globals.gridWidth) {
27434+
if (dataLabelsObj.dataLabelsPos.dataLabelsX + Math.max(barWidth, w.globals.barPadForNumericAxis) < 0 || dataLabelsObj.dataLabelsPos.dataLabelsX - Math.max(barWidth, w.globals.barPadForNumericAxis) > w.globals.gridWidth) {
2742527435
skipDrawing = true;
2742627436
}
2742727437
}
@@ -35904,7 +35914,6 @@
3590435914
// Options are identical, skip the update
3590535915
return this;
3590635916
}
35907-
this.lastUpdateOptions = Utils$1.clone(options);
3590835917
if (options.series) {
3590935918
this.series.resetSeries(false, true, false);
3591035919
if (options.series.length && options.series[0].data) {

dist/apexcharts.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)