Commit graph

235 commits

Author SHA1 Message Date
vicanso
d25a827706 fix: fix label position of pie, #86 2024-08-15 20:37:07 +08:00
vicanso
5842c71b1d refactor: remove unused code 2024-08-01 21:44:52 +08:00
vicanso
e7dc4189d5 feat: support bar margin 2024-06-07 20:35:03 +08:00
vicanso
32e6dd52d0 refactor: export GetRenderer function to get chart renderer 2024-06-05 21:13:03 +08:00
vicanso
9614835723 feat: support rounded rect for horizontal bar chart 2024-05-21 20:26:40 +08:00
vicanso
9b7634c2c2 feat: support rounded rect for bar chart 2024-05-16 20:02:24 +08:00
Tree Xie
5a69c3e5a3
Merge pull request #72 from euerla/main
fix: Label position of the pie chart
2024-03-23 10:33:19 +08:00
Alexander Heidrich
8c6c4e007c fix: Label position of the pie chart 2024-03-22 08:27:06 +01:00
Tree Xie
765febd03a
Merge pull request #71 from euerla/main
fix: Label position of the pie chart
2024-03-09 08:13:02 +08:00
Alexander Heidrich
19a4d783fd fix: Label position of the pie chart 2024-03-08 20:24:13 +01:00
vicanso
06fe1006d5 chore: update test go version 2024-02-11 12:39:39 +08:00
vicanso
f1a231ff4b feat: support split line show option for charts, #69 2024-02-11 12:36:26 +08:00
Tree Xie
c7c0655113
Merge pull request #67 from ssexuejinwei/main
support dash line for line chart
2024-01-02 19:35:16 +08:00
xuejinwei.1112
310800a5f0 support dash line for line chart 2024-01-02 12:32:56 +08:00
vicanso
e09ab2c3c7 Revert "chore: update modules"
This reverts commit c2f709a742.
2023-12-27 20:37:18 +08:00
vicanso
c2f709a742 chore: update modules 2023-12-27 20:34:05 +08:00
vicanso
98af9866a4 refactor: support label show for radar chart, #62 2023-12-27 20:33:12 +08:00
Tree Xie
c302d0ffa4
Merge pull request #65 from vicanso/revert-56-xAxisImprovements
Revert "Improvements to how the X Axis is rendered"
2023-12-27 18:21:05 +08:00
Tree Xie
8bcb584aba
Revert "Improvements to how the X Axis is rendered" 2023-12-27 18:20:55 +08:00
vicanso
0ddb9e4ef1 chore: update modules 2023-05-12 20:31:42 +08:00
Tree Xie
18d8ee51fb
Merge pull request #56 from jentfoo/xAxisImprovements
Improvements to how the X Axis is rendered
2023-05-06 19:41:25 +08:00
Mike Jensen
687baad0af
Unit test fixes
Unit tests updated for new tick positions and in a couple cases additional one X axis sample.
2023-05-05 10:19:01 -06:00
Mike Jensen
a158191faf
Add Unit to XAxis as a publicly visible parameter
In some cases the XAxis may have a single long title.  This can result in very few increments being shown.
In order to be more flexible for those cases this allows the XAxis Tick frequency to be able to be directly controlled.
2023-05-05 09:55:55 -06:00
Mike Jensen
c810369730
Change ticks to avoid values impacting each other
The recently introduced logic has an incorrect understanding of the `unit` parameter.
This would result in too many ticks being outputted, particularly as datasets got larger.
This fixes it by re-calculating the tick count using the `unit` param as originally intended.
2023-05-05 09:44:09 -06:00
Mike Jensen
19173dfd37
painter.go: Optimize isTick function
This reduces the loop frequency to one or two iterations in all cases.
I have been unable to find any single line equation that can produce this same behavior, but one likely exists.
2023-05-04 17:59:11 -06:00
Mike Jensen
e7a49c2c21
Improvements to how the X Axis is rendered
This provides two improvements to how the X Axis is rendered:
* The calculation for where a tick should exist has been improved.  It now will ensure a tick is always at both the start of the axis and the end of the axis.  This makes it clear exactly what data span is captured in the graph.
* The second improvement is how the label on the last tick is written.  It used to often get partially cut off, and with the change to ensure a tick is always at the end this could be seen more easily.  Now the last tick has it's label written to the left so that it can be fully displayed.
2023-05-04 12:52:28 -06:00
vicanso
20e8d4a078 feat: support to set the first axis 2023-02-25 14:04:30 +08:00
vicanso
29a5ece545 chore: update go modules 2023-02-14 20:35:54 +08:00
vicanso
d3f7a773af fix: fix zero value of funnel chart, #43 2023-01-12 20:20:36 +08:00
vicanso
8ba9e2e1b2 fix: fix x axis label of horizontal bar chart, #42 2023-01-11 20:41:16 +08:00
vicanso
e10175594b feat: support label format for funnel chart, #41 2023-01-05 19:15:58 +08:00
Tree Xie
b3cb5a75cb
Merge pull request #40 from junglerider/main
added option for line chart bg fill opacity
2022-12-27 08:29:19 +08:00
Thomas Knierim
a767b3e1af added option for line chart bg fill opacity 2022-12-26 15:06:53 +07:00
vicanso
830d4bdd21 fix: fix test for text roration 2022-12-11 14:59:37 +08:00
vicanso
d5533447f5 feat: support text rotation for series label, #38 2022-12-11 14:57:05 +08:00
vicanso
ef04ac14ab feat: support font size for series label, #38 2022-12-09 20:08:47 +08:00
vicanso
f9a534ea02 fix: fix the color of series label, #37 2022-12-07 19:57:35 +08:00
vicanso
df6180e59a fix: fix zero max value of nan, #37 2022-11-28 19:55:14 +08:00
vicanso
5f0aec60d3 refactor: adjust label value of horizontal bar 2022-11-24 20:12:19 +08:00
vicanso
6db8e2c8dc feat: support series label for horizontal bar 2022-11-23 23:01:52 +08:00
vicanso
4fc250aefc feat: support rotate series label 2022-11-22 22:41:56 +08:00
vicanso
55eca7b0b9 feat: support detect color dark or light 2022-11-16 20:46:19 +08:00
vicanso
a42d0727df feat: support text rotation 2022-11-15 20:09:29 +08:00
vicanso
7e1f003be8 refactor: update demo 2022-11-12 20:18:02 +08:00
vicanso
de4250f60b feat: support get and set default font 2022-11-12 20:01:36 +08:00
vicanso
2ed86a81d0 fix: fix setting font family for table render 2022-11-12 10:48:24 +08:00
vicanso
6f6d6c3447 fix: fix label render of pie chart, #34 2022-11-07 20:34:28 +08:00
vicanso
bdcc871ab1 fix: fix series render of horizontal bar, #31 2022-11-03 21:31:53 +08:00
vicanso
a88e607bfc refactor: support custom value formatter 2022-10-21 20:37:09 +08:00
vicanso
74a47a9858 refactor: enhance value format, #28 2022-10-20 20:27:42 +08:00