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

Axis properties #1290

Merged
merged 7 commits into from
May 6, 2016
Merged

Axis properties #1290

merged 7 commits into from
May 6, 2016

Conversation

YuhanLu
Copy link
Contributor

@YuhanLu YuhanLu commented Apr 8, 2016

Support more properties for axis

@YuhanLu YuhanLu changed the title [WIP] Axis properties Axis properties Apr 8, 2016
@@ -195,6 +195,14 @@ export function tickSize(model: Model, channel: Channel) {
return undefined;
}

export function tickSizeEnd(model: Model, channel: Channel) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still haven't modified the top of this file (line 86) as suggested earlier.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

return labelsSpec || undefined;
}

export function ticks(model: Model, channel: Channel, ticksPropsSpec, def) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@YuhanLu

let's remove def from all of these methods if it's not used. (If it's used like labels(), we can leave it in.)

@YuhanLu
Copy link
Contributor Author

YuhanLu commented Apr 18, 2016

did I press some wrong buttons? why is it closed?

@YuhanLu
Copy link
Contributor Author

YuhanLu commented Apr 18, 2016

All the properties are tested in editor

@kanitw
Copy link
Member

kanitw commented Apr 29, 2016

LGTM. One last thing. Can you add documentation for these added properties?

@YuhanLu
Copy link
Contributor Author

YuhanLu commented May 2, 2016

Documentation added

@@ -249,7 +249,7 @@ vg.embed('#horizontal_line', {
| Property | Type | Description |
| :------------------ |:-------------------:| :------------|
| font | String | The typeface to set the text in (e.g., `Helvetica Neue`).|
| fontSize | Number | The font size, in pixels. The default value is 10. |
| fontSize | Number | The font size, in pixels. The default value is 10. |
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 there whitespace in the front of this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry that is a typo, just fixed it.

@kanitw kanitw merged commit b3447a5 into master May 6, 2016
@kanitw kanitw deleted the zl/axis-property branch May 6, 2016 18:05
@domoritz
Copy link
Member

domoritz commented May 8, 2016

🎉

willium added a commit that referenced this pull request May 10, 2016
* master:
  Update integrations.md
  Add new legend properties (#1302)
  Axis properties (#1290)
  add documentation (#1334)
  Tick mark orient inverted (#1293)
  Size support stack (#1312)
  Make CellConfig.strokeDash an array
  Remove example with log scale that is not meant to be a showcase
  Correct a typo in size scales description (#1308)
  Add tickSizeRange fixing #1298 (#1299)
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.

None yet

3 participants