1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-05-10 19:29:15 +08:00

35 Commits

Author SHA1 Message Date
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
705db137bc
Fixing existing Lint issues. 2019-02-18 02:14:14 -05:00
Jakub Sobon
d5b04946d2
The XDetails object now maintains its creation properties. 2019-02-17 21:24:23 -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
11286f6ff6
Improving test coverage of label.go. 2019-02-14 01:06:48 -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
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
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
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
c2fd0aa46f
Better names for arguments. 2019-01-12 21:26:36 -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
01957f0d15
Finalizing the axes package.
It can determine details for both of the axis.
2019-01-12 15:55:49 -05:00
Jakub Sobon
426cc6230b
Placement of labels under the X axis.
And more test coverage.
2019-01-12 00:01:04 -05:00
Jakub Sobon
a3bed458d6
More validation for the scales. 2019-01-08 23:56:05 -05:00
Jakub Sobon
bdd0290c98
Scale for the X axis. 2019-01-08 23:36:21 -05:00
Jakub Sobon
27d9a6c7c5
Adding missing license. 2019-01-08 00:28:05 -05:00
Jakub Sobon
6da1d10f86
Complete implementation of the YAxis object. 2019-01-08 00:24:48 -05:00
Jakub Sobon
310f12a5ae
Licenses for label.go. 2019-01-07 23:42:46 -05:00
Jakub Sobon
f61d5f045d
Function that determines label placement. 2019-01-07 23:42:17 -05:00
Jakub Sobon
01e44819cb
Reversing scale inputs and outputs.
So they grow as the coordinates do.
2019-01-07 22:55:28 -05:00
Jakub Sobon
025e8a7efb
Adding numbers.Round for backward compatibility.
And disabling tests of unimplemented components.
2019-01-07 20:53:42 -05:00
Jakub Sobon
91972c941e
Adding licenses. 2019-01-07 00:16:48 -05:00
Jakub Sobon
79c7955335
Numerical functions and representations of value, scale and axis. 2019-01-07 00:15:31 -05:00