Jakub Sobon
06eb7623bd
Modifying imports 'internal' -> 'private'.
2020-04-10 15:26:45 -04:00
Xabier Larrakoetxea
7571889bec
Use the y-axis value formatter option on y-axis internal properties
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-04-26 07:04:03 +02:00
Xabier Larrakoetxea
53abc10da3
Remove not required constants from linechart minMax wrapper
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-04-18 20:33:53 +02:00
Xabier Larrakoetxea
b54694ed12
LineChart defaults to 0 mix and max when these are NaN
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-04-17 13:42:05 +02:00
Xabier Larrakoetxea
42c2731286
Allow 'no values' on linechart represented by NaN float64 that will be displayed as empty cells
...
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-04-14 10:16:44 +02:00
Jakub Sobon
10d4a55348
Provide metadata to widgets when drawing.
2019-04-03 23:13:18 -04:00
Jakub Sobon
68fb7606d9
Prevent external mutation of data passed into widgets.
...
Fixes #174 .
2019-03-20 23:20:16 -04:00
Jakub Sobon
b020770733
Moving widgetapi out of internal.
...
This will allow external users to develop their own widgets.
2019-03-02 22:00:07 -05:00
Jakub Sobon
98394c921a
Moving draw back to internal.
...
Adding test for linestyle.
2019-02-24 01:54:37 -05:00
Jakub Sobon
b74f46509b
Moving runewidth, segdisp and testdraw to internal.
2019-02-24 01:27:17 -05:00
Jakub Sobon
bf61ca1479
Moving draw out of internal.
2019-02-24 01:20:03 -05:00
Jakub Sobon
97ec73069f
Moving align, cell and terminalapi back from internal.
2019-02-24 01:13:26 -05:00
Jakub Sobon
f0438f5f78
Moving linechart's zoom into internal subdirectory.
2019-02-23 21:22:52 -05:00
Jakub Sobon
9517bd49e3
Moving linechart's axes to internal subdirectory.
2019-02-23 21:21:52 -05:00
Jakub Sobon
5ac468c10a
Moving terminal, terminalapi and widgetapi to internal subdirectory.
...
And adding a README under internal.
2019-02-23 21:19:16 -05:00
Jakub Sobon
55efbe07fe
Moving numbers to internal subdirectory.
2019-02-23 21:16:13 -05:00
Jakub Sobon
6c03991fb9
Moving draw and event to internal.
2019-02-23 21:10:51 -05:00
Jakub Sobon
7ee222ac58
Moving private libraries into internal subdirectory.
2019-02-23 21:09:38 -05:00
Jakub Sobon
a2642ea039
The LineChart now continuous to accept mouse events after terminal resize.
...
And allowing it to receive global mouse events to be able to cancel
highlight on clicks outside of the widget.
2019-02-23 20:48:41 -05:00
Jakub Sobon
0490734d1e
Running gofmt.
2019-02-23 00:42:47 -05:00
Jakub Sobon
22946f2f65
Allowing widgets to select the scope for mouse events too.
2019-02-23 00:41:58 -05:00
Jakub Sobon
38ec4a9e1b
Fixing invalid zooming behaviors.
...
- stay unzoomed when we hit the largest view.
- correctly normalize zoom values when the base axis is in motion.
- test coverage for the edge cases.
Fixes #136
2019-02-18 18:48:19 -05:00
Jakub Sobon
72b3ac4ff9
The LineChart widget now supports zoom.
2019-02-18 01:28:30 -05:00
Jakub Sobon
52ae7d1807
Improving option comment and test coverage.
2019-02-16 01:01:04 -05:00
Jakub Sobon
aca7abff4f
LineChart now has an option that disables scaling of X axis.
...
Useful for applications that want to continuously feed data and make
them "roll" through the linechart.
Also exposing a method that returns the observed capacity of the
LineChart the last time Draw was called.
2019-02-16 00:35:40 -05:00
Jakub Sobon
c78bd1f226
Refactor XScale so we can pass in the min value.
...
Rather than assuming it is always zero.
2019-02-15 22:44:40 -05:00
Jakub Sobon
bbaf393110
Removing the Y object.
2019-02-15 21:20:42 -05:00
Jakub Sobon
feb406ec11
Refactoring y.Details off the object.
2019-02-15 21:19:04 -05:00
Jakub Sobon
9b3edb42b9
Refactor RequiredWidth off the Y object.
2019-02-15 21:05:43 -05:00
Jakub Sobon
6379b1d28e
Allow users to provide custom Y axis scale for the LineChart.
2019-02-14 23:13:21 -05:00
Jakub Sobon
5f6a84314c
Account for two labels on the Y axis.
2019-02-14 00:43:27 -05:00
Jakub Sobon
3dba76c26f
Linechart can now draw labels under X vertically.
2019-02-14 00:37:35 -05:00
Jakub Sobon
7ef79393df
xLabels now supports vertical labels.
2019-02-13 23:16:05 -05:00
Jakub Sobon
8968704de2
Fixing racy behavior between Options and Draw.
...
This applies to widgets whose Options depend on user data.
Documenting this in the docs and on API and protecting against this
condition in the affected widgets.
2019-01-26 23:58:38 -05:00
Jakub Sobon
7d22a68376
Adding LineChart option YAxisAdaptive.
...
When provided, this option stops anchoring the Y axis at the zero value.
2019-01-26 22:23:55 -05:00
Michael Teuscher
010ad3fc5b
Fixed comments for golint
2019-01-22 23:30:18 +01:00
Jakub Sobon
bc911a3cd6
More test coverage for linechart.
2019-01-13 01:38:39 -05:00
Jakub Sobon
1db0cfc7f1
Test coverage for the initial functionality of linechart.
2019-01-13 00:03:19 -05:00
Jakub Sobon
5a392572f0
Proof of concept code that draws a single line chart.
2019-01-12 21:13:03 -05:00
Jakub Sobon
d8c24da6c4
Initial skeleton and API for the LineChart widget.
2018-12-31 00:17:38 -05:00