-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add missing axis/legend config #2359
Conversation
src/vega.schema.ts
Outdated
@@ -427,9 +446,14 @@ export interface VgAxisConfig extends VgAxisBase { | |||
labelLimit?: number; | |||
|
|||
/** | |||
* Maximum allowed pixel width of axis titles. | |||
* Padding in pixels betweem axis ticks and tick labels. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
between
@@ -84,8 +84,8 @@ To provide themes for all axes, the axis config `config: {axis: {...}}` can cont | |||
|
|||
### Ticks | |||
|
|||
{% include table.html props="tickColor,labelColor,labelFont,labelFontSize,labelLimit,tickWidth" source="AxisConfig" %} | |||
{% include table.html props="tickColor,tickRound,labelColor,labelFont,labelFontSize,labelLimit,tickWidth" source="AxisConfig" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are label*
in this group for ticks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put them here because they are for ticks label.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@domoritz - wonder if you think we should split this? I think spliting might make more sense for users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Into label and tick things? I don't think it really matters as they are already sorted.
src/vega.schema.ts
Outdated
* An interpolation fraction indicating where, for `band` scales, axis ticks should be positioned. A value of `0` places ticks at the left edge of their bands. A value of `0.5` places ticks in the middle of their bands. | ||
*/ | ||
bandPosition?: number; | ||
// ---------- Axis ---------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this // ---------- Axis ----------
below bandPosition?
Fix #2342
Add
labelPadding
,tickExtra
,titleAlign
,titleAngle
to Axis PropertiesAdd
bandPosition
,titleX
,titleY
to Axis ConfigAdd
fillColor
,titleAlign
, to Legend PropertiesAdd
cornerRadius
,strokeColor
,strokeDash
,strokeWidth
,titleBaseline
,gradientLabelBaseline
,gradientLabelLimit
,gradientLabelOffset
to Legend Config