Skip to content
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

Merged
merged 3 commits into from
May 11, 2017
Merged

add missing axis/legend config #2359

merged 3 commits into from
May 11, 2017

Conversation

YuhanLu
Copy link
Contributor

@YuhanLu YuhanLu commented May 11, 2017

Fix #2342

Add labelPadding, tickExtra, titleAlign, titleAngle to Axis Properties

Add bandPosition, titleX, titleY to Axis Config

Add fillColor, titleAlign, to Legend Properties

Add cornerRadius, strokeColor, strokeDash, strokeWidth, titleBaseline, gradientLabelBaseline, gradientLabelLimit, gradientLabelOffset to Legend Config

@@ -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.
Copy link
Member

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" %}
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Member

@domoritz domoritz May 11, 2017

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.

* 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 ----------
Copy link
Member

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?

@kanitw kanitw merged commit eba0af0 into master May 11, 2017
@kanitw kanitw deleted the zl/config-doc branch May 11, 2017 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants