Jakub Sobon
a8a965c555
Remove the debug hooks.
2019-02-18 22:35:30 -05:00
Jakub Sobon
cecf39a9c7
Roll the zoom with the axis when XAxisUnscaled is provided.
2019-02-18 22:33:25 -05:00
Jakub Sobon
5b89dbc1a0
Undo the experiments in the LineChart demo.
2019-02-18 18:50:55 -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
ec8160ef40
Don't zoom when only a single column was highlighted.
2019-02-18 15:13:45 -05:00
Jakub Sobon
705db137bc
Fixing existing Lint issues.
2019-02-18 02:14:14 -05:00
Jakub Sobon
72b3ac4ff9
The LineChart widget now supports zoom.
2019-02-18 01:28:30 -05:00
Jakub Sobon
4a7c5d9f48
Object that tracks the zoom state for LineChart.
2019-02-18 00:54:35 -05:00
Jakub Sobon
d5b04946d2
The XDetails object now maintains its creation properties.
2019-02-17 21:24:23 -05:00
Jakub Sobon
d2533da9cf
Make the Y axis adaptive when custom scale is provided.
2019-02-16 01:12:08 -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
f465e11288
Scale and label now support X axis that doesn't start at zero.
2019-02-15 22:59:27 -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
38a2a36234
Adding Text Write option that atomically replaces the text content.
2019-02-15 00:40:15 -05:00
Jakub Sobon
2784a1c7a0
Constructor of Text now returns an error.
2019-02-15 00:20:20 -05:00
Jakub Sobon
231db41590
Constructor of SparkLine now returns an error.
2019-02-15 00:05:45 -05:00
Jakub Sobon
a6f5d69569
Constructor of Gauge now returns an error.
2019-02-14 23:56:06 -05:00
Jakub Sobon
3e8466282e
Merge branch 'devel' into constructor-error
2019-02-14 23:40:52 -05:00
Jakub Sobon
2949a79357
Constructor of BarChart now returns an error.
2019-02-14 23:37:06 -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
11286f6ff6
Improving test coverage of label.go.
2019-02-14 01:06:48 -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
9f893eb482
Function to calculate required height.
...
And options to set label orientation.
2019-02-13 22:53:19 -05:00
Jakub Sobon
9df48f9060
Undo the experiment in the demo.
2019-02-12 23:19:31 -05:00
Jakub Sobon
23c01a5c56
The LineChart widget now correctly places custom labels.
...
The code incorrectly used label number rather than value position when
looking up custom labels.
2019-02-12 23:15:13 -05:00
Jakub Sobon
e44d70b568
Merge pull request #101 from mum4k/segment-display
...
Segment display
2019-02-06 23:46:50 -05:00
Jakub Sobon
c58217af9c
Adding image and doc entry for the segment display.
2019-02-06 23:18:56 -05:00
Jakub Sobon
3f416675e9
Improving the demo.
2019-02-06 01:03:39 -05:00
Jakub Sobon
166e9cc7dc
Improving the demo.
2019-02-06 00:59:36 -05:00
Jakub Sobon
eb8da5924e
Migrate segArea code to its own file.
2019-02-06 00:40:08 -05:00
Jakub Sobon
e80e1a1134
Support addition of gaps.
2019-02-06 00:29:14 -05:00
Jakub Sobon
858ce17ced
Drafted the segment display demo.
2019-02-05 00:17:25 -05:00
Jakub Sobon
8128e15747
Adding licences.
2019-02-05 00:05:54 -05:00
Jakub Sobon
35f11d3a5e
Implementing the segment display widget.
2019-02-05 00:05:31 -05:00
Jakub Sobon
38aae8e556
Switching text to attrrange.
2019-02-04 21:41:04 -05:00
Jakub Sobon
f16bda1131
Skeleton for the segment display.
2019-02-03 23:57:32 -05:00
Jakub Sobon
34a715fc1d
Fixing a comment.
2019-02-03 23:39:29 -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
21083a9b8f
Self-review fixes.
2019-01-26 22:33:20 -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
Jakub Sobon
406c365847
LineChart now correctly displays series without zero.
2019-01-26 03:22:13 -05:00
Michael Teuscher
a4152652fc
updated pull-request
2019-01-23 08:15:10 +01:00
Michael Teuscher
0c05aeed5f
Properly dismiss err object
2019-01-22 23:45:29 +01:00
Michael Teuscher
1fb4a35eeb
Handle error instead of swallowing it
2019-01-22 23:33:11 +01:00