Skip to content

Implement layout.legend.orientation (closes #53) #1

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

Closed
wants to merge 19 commits into from

Conversation

n-riesco
Copy link
Owner

No description provided.

n-riesco added 11 commits May 13, 2016 21:29
* Removed unused `i`.

* Passed `legendItem` directly.
* Checked that all jasmine and image tests still pass.
* Set tspan.line's x in the callback to convertToSpans, otherwise they
  won't be set in the first render.

* Checked all jasmine and image tests still pass.
* Ensure the position of the `tspan.line`s is set before computing the
  legend dimensions and expanding the margins.

* The baseline image for `pseudo_html.json` needed updating because it
  has a multi-line legend.
* This change not only improves drawing performance, but it will also
  allows for `drawTexts` to be moved to `styles.js`.

* Checked all jasmine and image tests still pass.
* Moved the placing of legend groups to `computeLegendDimensions` so
  that they are handled along with the placing of legend traces.

* This change is a preliminary step to implement horizontal legends.

* Checked all jasmine and image tests still pass.
* Added `legend_horizontal.json` (a mock with a horizontal legend
  without groups).

* Added `legend_horizontal_groups.json` (a mock with a grouped
  horizontal legend).
n-riesco added 8 commits May 17, 2016 12:02
* Used `selection.call()` to invoke drawTexts, setupTraceToggle and
  computeTextDimentions.
* Removed legendItem from the function signatures of drawTexts,
  setupTraceToggle and computeTextDimensions.
* Position horizontal legends on the bottom left, unless a range slider
  is present.

* If a range slider is present, position the horizontal legend on the
  top left.
@n-riesco n-riesco closed this May 17, 2016
@n-riesco n-riesco deleted the legend-orientation branch May 17, 2016 20:03
n-riesco pushed a commit that referenced this pull request Oct 17, 2016
Legend item wrap with layout.legend.orientation = h
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.

1 participant