Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
8785a7d
Simplified the code.
raf18seb Jan 26, 2026
d3f9aa2
Simplified the code.
raf18seb Jan 27, 2026
18606e2
Corrected npm version in the docs.
raf18seb Jan 27, 2026
9bfa1ae
Added the equilateral projection. Prepare for further development.
raf18seb Jan 27, 2026
8b53f69
Improved positioning with the chart spacing.
raf18seb Jan 28, 2026
f23916a
Cleaned README, TODO moved to PR description.
raf18seb Jan 28, 2026
4ad4944
Added chart.sumTo option.
raf18seb Jan 28, 2026
1065760
Added title.margin and title.marginXOnly options.
raf18seb Jan 29, 2026
210d8c8
Added title.stickToCorner and improved positioning.
raf18seb Feb 2, 2026
1806ce2
Added axis.drawMedian option.
raf18seb Feb 3, 2026
db2374d
Fixed isInsidePlot for the dataLabels.
raf18seb Feb 3, 2026
a51378e
Added series.ternaryColors option.
raf18seb Feb 6, 2026
90e9ff1
Moving methods to make more space for indentations.
raf18seb Feb 6, 2026
346434f
Fixed bugs, addem more options, improved the code.
raf18seb Feb 17, 2026
15d60d9
Added series minR and maxR options.
raf18seb Feb 17, 2026
1334eb4
Parametrized tick length and added labels.margin option.
raf18seb Feb 18, 2026
4ae8626
Changed the ternaryProjection options to ternaryAngle.
raf18seb Feb 18, 2026
5890218
Added clamp for ternaryAngle, improve comments.
raf18seb Feb 18, 2026
76d20df
Changed toPerspective method name to ternaryToPlot.
raf18seb Feb 18, 2026
74eb6d7
Improved axis labels positioning.
raf18seb Feb 20, 2026
726ab36
Fixed legend bug, improved defaults.
raf18seb Feb 20, 2026
597f2f9
Added x & y position options for labels and titles.
raf18seb Feb 20, 2026
39400d0
Simplified code for the default options.
raf18seb Feb 20, 2026
72e24c7
Linting.
raf18seb Feb 20, 2026
a57726b
Fixed marker options bug.
raf18seb Feb 20, 2026
6cf603b
Changed some options naming.
raf18seb Feb 22, 2026
89bb77b
Preparation for dataLabels position fix.
raf18seb Feb 22, 2026
c039da4
Added sections to the code.
raf18seb Feb 22, 2026
7fa2f23
Added default color for median, fixed default x, y, z.
raf18seb Feb 23, 2026
b925e81
Added local HC source, changed chart.ternary type.
raf18seb Apr 1, 2026
0c12605
index.html testing draft
raf18seb Apr 1, 2026
f864bcb
Changed x, y, z to a, b, c. Changed ternaryAxis structure.
raf18seb Apr 1, 2026
0715a21
Fixed empty tooltip issue.
raf18seb Apr 1, 2026
0c6d454
Changed ternaryGrid to median: boolean || {}.
raf18seb Apr 1, 2026
e3a209c
Added TypeScript.
raf18seb Apr 2, 2026
18527f2
Fixed bug with plotX, improved the code.
raf18seb Apr 2, 2026
970e9a6
Removed unnecessary code, improved types.
raf18seb Apr 2, 2026
201349c
Changed title.marginXOnly to title.offsetDirection.
raf18seb Apr 2, 2026
45bac0f
Added dash style for grid lines.
raf18seb Apr 2, 2026
242319d
Changed ternaryColors to componentColors. Changed minR and maxR to mi…
raf18seb Apr 2, 2026
af91ed1
Improved the code.
raf18seb Apr 2, 2026
4126455
Removed fixed version, added JSDOC, added small code improvements.
raf18seb Apr 2, 2026
dd6b746
Fixed chart updates, changed stickToCorner option, improved the code …
raf18seb Apr 2, 2026
15e5945
Added tests, fixed and improved the code, added changelog, improved d…
raf18seb Apr 3, 2026
a694f34
Improved some TS types.
raf18seb Apr 3, 2026
956f9eb
Improved TS indentations.
raf18seb Apr 3, 2026
03f8692
Improved demo page, added Migration v1 -> v2 guide, improved README.
raf18seb Apr 3, 2026
7a0e785
Improved README.
raf18seb Apr 3, 2026
fd9a2ab
Fixed tsconfig.json.
raf18seb Apr 3, 2026
a0dc8f3
Installed HC, improved and added more tests.
raf18seb Apr 3, 2026
1e682f7
Added more tests.
raf18seb Apr 3, 2026
dcf4b82
Improved demo page, improved demos, improved the code.
raf18seb Apr 3, 2026
46416a1
Improved and linted the code.
raf18seb Apr 3, 2026
101e5ac
Improved code lint, fixed dark mode for demo page, improved demos.
raf18seb Apr 3, 2026
a87b51a
Improved demos styles.
raf18seb Apr 4, 2026
056b6f7
Improved demos (added chips), improved code style.
raf18seb Apr 4, 2026
c29e4c3
Improved demos even more. Improved mobile.
raf18seb Apr 4, 2026
436a1ab
Simplified the vocabulary chart code.
raf18seb Apr 4, 2026
143d636
Installed newer dependencies, preparing to 2.0.0 release.
raf18seb Apr 4, 2026
8d4bb62
Added lineWidth & dashStyle + tests.
raf18seb Apr 4, 2026
5d971fa
Added types, corrected docs.
raf18seb Apr 4, 2026
81b3f06
Fixed docs & defaults.
raf18seb Apr 4, 2026
738eb39
Added SEO, improved demo, improved README.
raf18seb Apr 6, 2026
d851d08
Last improvements.
raf18seb Apr 6, 2026
f2c997e
Last polishes.
raf18seb Apr 6, 2026
42498b7
Improved API options naming.
raf18seb Apr 7, 2026
64a7819
Fixed table for API options in README.
raf18seb Apr 7, 2026
1a2f2ac
Merge branch 'main' into release/1.1.0-work
raf18seb Apr 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
node_modules/
TODO.md
.cache/
js/tmp/
js/tmp/dev.html
.claude/
CODESTYLE.md
dev.html
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Changelog

## [2.0.0] — 2026-04-07

### Breaking changes

- Series data keys renamed: `x`, `y`, `z` → `a`, `b`, `c`
- `ternaryAxis` structure changed — each axis (`a`, `b`, `c`) is now configured as a separate key under `ternaryAxis` instead of a flat options object
- `chart.ternary` now accepts a configuration object in addition to `true`

### New features

- **TypeScript** — type declarations included in the package (`types/index.d.ts`)
- **JSDoc** — all public options documented with JSDoc
- **`componentColors`** — color each axis component independently; supports `a`, `b`, `c` color keys and `alpha` for blending
- **`minSize` / `maxSize`** — control bubble size range for scatter series (replaces ad-hoc sizing)
- **`median`** — configure the median lines as `boolean` or an object with style options (`color`, `width`, `dashStyle`)
- **`ternaryAngle`** — control the projection angle of the triangle
- **`title.position`** — set axis title position (`corner` or `side`)
- **`title.offsetDirection`** — control which direction the axis title offsets from the axis
- **`title.margin`** / **`labels.margin`** — fine-tune spacing between titles, labels, and the triangle
- **`gridLineDashStyle`** — dash style support for grid lines
- **`chart.sumTo`** — normalize data to a sum other than 100
- **`lineColor` / `lineWidth` / `lineDashStyle`** — style the triangle sides (axis lines) independently from internal grid lines; previously both used `gridLineColor` / `gridLineWidth`

---

## [1.0.0] — initial release
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 Black Label
Copyright (c) 2025-2026 Black Label

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
367 changes: 298 additions & 69 deletions README.md

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions RELEASE_CHECKLIST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Release checklist

Steps to follow before every `npm publish`.

## 1. Verify

- [ ] `npm test` — all tests pass
- [ ] `npm run build` — build passes, no lint/TS errors
- [ ] `js/ternary-plot.js` header — correct version and year
- [ ] `package.json` — correct `version`
- [ ] `CHANGELOG.md` — entry exists for this version with today's date

## 2. Preview what npm will publish

```bash
npm pack --dry-run
```

Confirm only `js/ternary-plot.js` and `types/` are included. No source files, no `dev.html`, no test files.

## 3. Git

```bash
git add .
git commit -m "Release v2.0.0"
git tag v2.0.0
```

Merge or rebase onto `main`, then:

```bash
git push origin main
git push origin v2.0.0
```

## 4. Publish

```bash
npm publish
```

## 5. After publish

- [ ] Verify on [npmjs.com/package/highcharts-ternary-plot](https://www.npmjs.com/package/highcharts-ternary-plot) — correct version, files, readme
- [ ] Create GitHub Release for tag `v2.0.0` — paste CHANGELOG entry as description
- [ ] Update CDN link in `index.html` if the version number changed (currently `@2.0.0`)
Binary file removed assets/docs/demo-image.png
Binary file not shown.
Binary file added assets/docs/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/docs/readme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading