-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: more classification methods * docs: binning docs * chore: push yarn.lock and package.json * fix: linter * docs: adding missing plottitle docs * Update docs/transform/binning.md Co-Authored-By: GraceGSy <[email protected]> * docs: fic documentation error for manual binning * fix: remove uniqueValues binning method * feat: Symbol Mark, see sandbox TestSymbol graph * docs: symbol mark demo component added to docs * docs: filling in explanatory write-up for symbol mark * docs: minor change in example symbol graph * feat: tooltip + links for symbol marks * refactor: scaled symbol size, deprecate vgg-point * refactor: remove tooltip and html linking from symbol * feat: additional axis style options * feat: axis titles with styling options and hjust + vjust * refactor: titleHjust, titleVjust, add tickSize prop * feat: preliminary work on auto positioning for axes * fix: hardcode positioning for when axes are on top/right * feat: automatic positioning of axes in nested sections * feat: option to add extra tick at start of axes * docs: axis docs * refactor: extraTick logic added to tickData() * fix: nested axes now accurately sized and positioned * feat: additional axis positioning options using x, y, x1, x2, y1, y2 * docs: update axis docs, add examples * fix: convert vgg-symbol to vgg-point * feat: rendering of label for extraTick can now be toggled * fix: coordinate tree updates now only apply to branch and its children * chore: minor changes to default behavior in axes and scales * fix: more robust logic for positioning and sizing axes using screen coordinates * docs: updated axis docs, minor changes to axis code * test: change axes to intersect at center as per original * fix: broken SymbolMarkDemo * fix: change != to !== * fix: axes x/x1/x2/w and y/y1/y2/h are now defined in local coordinates
- Loading branch information
1 parent
6b647e9
commit d54380f
Showing
25 changed files
with
998 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
<template> | ||
<vgg-graphic | ||
:width="600" | ||
:height="300" | ||
:data="data"> | ||
|
||
<vgg-plot-title v-if="showX" text="x axis positioning" /> | ||
|
||
<vgg-plot-title v-if="showY" text="y axis positioning" /> | ||
|
||
<vgg-section | ||
v-if="showX" | ||
:x1="100" | ||
:x2="550" | ||
:y1="25" | ||
:y2="200" | ||
:scale-x="'xValues'" | ||
:scale-y="'yValues'" | ||
> | ||
|
||
<vgg-x-axis | ||
:scale="'xValues'" | ||
:vjust="0" | ||
:tickCount="5" | ||
:tickExtra="false" | ||
title="vjust = 0" | ||
/> | ||
|
||
<vgg-x-axis | ||
:scale="'xValues'" | ||
:vjust="0.5" | ||
:tickCount="5" | ||
:tickExtra="false" | ||
title="vjust = 0.5" | ||
/> | ||
|
||
<vgg-x-axis | ||
:scale="'xValues'" | ||
:vjust="1" | ||
:tickCount="5" | ||
:tickExtra="false" | ||
title="vjust = 1" | ||
/> | ||
|
||
</vgg-section> | ||
|
||
<vgg-section | ||
v-if="showY" | ||
:x1="50" | ||
:x2="550" | ||
:y1="25" | ||
:y2="200" | ||
:scale-x="'xValues'" | ||
:scale-y="'yValues'" | ||
> | ||
|
||
<vgg-y-axis | ||
:scale="'yValues'" | ||
:tickExtra="false" | ||
:hjust="0" | ||
:tickCount="5" | ||
title="hjust = 0" | ||
/> | ||
|
||
<vgg-y-axis | ||
:scale="'yValues'" | ||
:tickExtra="false" | ||
:hjust="0.5" | ||
:tickCount="5" | ||
title="hjust = 0.5" | ||
/> | ||
|
||
<vgg-y-axis | ||
:scale="'yValues'" | ||
:tickExtra="false" | ||
:hjust="1" | ||
:tickCount="5" | ||
title="hjust = 1" | ||
/> | ||
|
||
</vgg-section> | ||
|
||
<vgg-section | ||
v-if="showAll" | ||
:x1="50" | ||
:x2="550" | ||
:y1="25" | ||
:y2="250" | ||
:scale-x="'xValues'" | ||
:scale-y="'yValues'" | ||
> | ||
|
||
<vgg-x-axis | ||
:scale="'xValues'" | ||
title="x axis" | ||
:tickExtra="false" | ||
:titleHjust="1.05" | ||
/> | ||
|
||
<vgg-y-axis | ||
:scale="'yValues'" | ||
:tickExtra="false" | ||
:tickCount="5" | ||
title="y axis" | ||
/> | ||
|
||
</vgg-section> | ||
|
||
</vgg-graphic> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
showX : { | ||
default: false | ||
}, | ||
showY : { | ||
default: false | ||
}, | ||
showAll : { | ||
default: false | ||
} | ||
}, | ||
computed: { | ||
data () { | ||
let colors = ['red', 'blue', 'green'] | ||
let data = { colors: [], xValues: [], yValues: [] } | ||
for (let i = 0; i < 30; i++) { | ||
let colorIndex = Math.floor(Math.random() * 3) | ||
let color = colors[colorIndex] | ||
data.colors.push(color) | ||
data.xValues.push(Math.random() * 10) | ||
data.yValues.push(Math.random() * 100) | ||
} | ||
return data | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ title: Symbol Mark | |
|
||
# Component tag | ||
|
||
`<vgg-symbol>` | ||
|
||
`<vgg-point>` | ||
|
||
# Description | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.