Commit graph

39 commits

Author SHA1 Message Date
0eacc8e394 start migration to our packages
Some checks are pending
Test / Build (push) Waiting to run
2025-05-13 21:46:02 -05:00
vicanso
32e6dd52d0 refactor: export GetRenderer function to get chart renderer 2024-06-05 21:13:03 +08:00
vicanso
9b7634c2c2 feat: support rounded rect for bar chart 2024-05-16 20:02:24 +08:00
Tree Xie
8bcb584aba
Revert "Improvements to how the X Axis is rendered" 2023-12-27 18:20:55 +08: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
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
4fc250aefc feat: support rotate series label 2022-11-22 22:41:56 +08:00
vicanso
a42d0727df feat: support text rotation 2022-11-15 20:09:29 +08:00
vicanso
de4250f60b feat: support get and set default font 2022-11-12 20:01:36 +08:00
vicanso
a88e607bfc refactor: support custom value formatter 2022-10-21 20:37:09 +08:00
vicanso
825e65d930 refactor: use MaxInt32 instead of MaxInt 2022-09-15 20:15:05 +08:00
vicanso
50605907c7 feat: support null value for line chart 2022-09-15 20:09:00 +08:00
vicanso
b5b2d37e87 fix: fix axis boundary gap, #13 2022-07-11 20:44:28 +08:00
vicanso
0a3ac7096a refactor: adjust text render of axis 2022-07-06 20:44:52 +08:00
vicanso
f483e2a850 feat: support text align for table cell 2022-06-29 20:15:58 +08:00
vicanso
b3a3018ea2 feat: support table redner 2022-06-25 08:21:27 +08:00
vicanso
2fb0ebcbf7 feat: support table render 2022-06-23 23:29:13 +08:00
vicanso
8c5647f65f test: add test for axis 2022-06-23 20:32:25 +08:00
vicanso
706896737b docs: update documents 2022-06-22 21:04:16 +08:00
vicanso
d3c6649cd9 test: add test for axis 2022-06-18 10:38:46 +08:00
vicanso
38c4978e44 refactor: enhance chart render function 2022-06-17 23:37:21 +08:00
vicanso
65a1cb11ad feat: support pie, radar and funnel chart 2022-06-16 23:08:20 +08:00
vicanso
8a5990fe8f feat: support mark line and mark point render 2022-06-13 23:22:15 +08:00
vicanso
c4045cfbbe feat: support line chart render function 2022-06-12 11:55:37 +08:00
vicanso
b394e1b49f feat: support axis render 2022-06-08 23:19:03 +08:00
vicanso
4cf494088e feat: support legend render 2022-06-07 23:04:39 +08:00
vicanso
7ee13fe914 chore: supper grid renderer 2022-06-03 21:06:40 +08:00
vicanso
622bd8491b feat: support rect and legend line point render 2022-06-01 20:27:46 +08:00
vicanso
8314a2cb37 feat: support dots render function 2022-05-31 20:25:14 +08:00
vicanso
7e4de64a0d feat: support grid render function 2022-05-26 23:21:02 +08:00
vicanso
1dcd50ba9a feat: support multi text draw 2022-05-25 23:09:33 +08:00
vicanso
4201c7d439 chore: support axias ticks render 2022-05-24 23:25:08 +08:00
vicanso
ddd5cf6d43 refactor: enhance painter 2022-05-23 21:00:10 +08:00
vicanso
c363d1d5e3 refactor: reset 2022-05-16 20:58:41 +08:00
vicanso
7e80e9a848 refactor: adjust axis function 2022-05-16 20:41:13 +08:00
Renamed from painer.go (Browse further)