Giter Club home page Giter Club logo

d3plus-axis's Introduction

d3plus-axis

Beautiful javascript scales and axes.

Installing

If using npm, npm install d3plus-axis. Otherwise, you can download the latest release from GitHub or load from a CDN.

import modules from "d3plus-axis";

d3plus-axis can be loaded as a standalone library or bundled as part of D3plus. ES modules, AMD, CommonJS, and vanilla environments are supported. In vanilla, a d3plus global is exported:

<script src="https://cdn.jsdelivr.net/npm/d3plus-axis@1"></script>
<script>
  console.log(d3plus);
</script>

Examples

Live examples can be found on d3plus.org, which includes a collection of example visualizations using d3plus-react. These examples are powered by the d3plus-storybook repo, and PRs are always welcome. 🍻

API Reference

  • date - Parses numbers and strings to valid Javascript Date objects.

Axis <>

This is a global class, and extends all of the methods and functionality of BaseClass.

# new Axis()

Creates an SVG scale based on an array of data.

# Axis.render([callback]) <>

Renders the current Axis to the page. If a callback is specified, it will be called once the legend is done drawing.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.align([value]) <>

If value is specified, sets the horizontal alignment to the specified value and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.barConfig([value]) <>

If value is specified, sets the axis line style and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.data([value]) <>

An array of data points, which helps determine which ticks should be shown and which time resolution should be displayed.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.domain([value]) <>

If value is specified, sets the scale domain of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.duration([value]) <>

If value is specified, sets the transition duration of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.grid([value]) <>

If value is specified, sets the grid values of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.gridConfig([value]) <>

If value is specified, sets the grid config of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.gridLog([value]) <>

If value is specified, sets the grid behavior of the axis when scale is logarithmic and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.gridSize([value]) <>

If value is specified, sets the grid size of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.height([value]) <>

If value is specified, sets the overall height of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.labels([value]) <>

If value is specified, sets the visible tick labels of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.labelOffset([value]) <>

If value is specified, sets whether offsets will be used to position some labels further away from the axis in order to allow space for the text.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.labelRotation([value]) <>

If value is specified, sets whether whether horizontal axis labels are rotated -90 degrees.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.maxSize(_) <>

If value is specified, sets the maximum size allowed for the space that contains the axis tick labels and title.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.minSize(_) <>

If value is specified, sets the minimum size alloted for the space that contains the axis tick labels and title.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.orient([orient]) <>

If orient is specified, sets the orientation of the shape and returns the current class instance. If orient is not specified, returns the current orientation.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.outerBounds() <>

If called after the elements have been drawn to DOM, will returns the outer bounds of the axis content.

This is a static method of Axis.

{"width": 180, "height": 24, "x": 10, "y": 20}

# Axis.padding([value]) <>

If value is specified, sets the padding between each tick label to the specified number and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.paddingInner([value]) <>

If value is specified, sets the inner padding of band scale to the specified number and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.paddingOuter([value]) <>

If value is specified, sets the outer padding of band scales to the specified number and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.range([value]) <>

If value is specified, sets the scale range (in pixels) of the axis and returns the current class instance. The given array must have 2 values, but one may be undefined to allow the default behavior for that value.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.rounding([value]) <>

Sets the rounding method, so that more evenly spaced ticks appear at the extents of the scale. Can be set to "none" (default), "outside", or "inside".

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.scale([value]) <>

If value is specified, sets the scale of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.scalePadding([value]) <>

Sets the "padding" property of the scale, often used in point scales.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.select([selector]) <>

If selector is specified, sets the SVG container element to the specified d3 selector or DOM element and returns the current class instance. If selector is not specified, returns the current SVG container element.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.shape([value]) <>

If value is specified, sets the tick shape constructor and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.shapeConfig([value]) <>

If value is specified, sets the tick style of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.tickFormat([value]) <>

If value is specified, sets the tick formatter and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.ticks([value]) <>

If value is specified, sets the tick values of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.tickSize([value]) <>

If value is specified, sets the tick size of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.tickSuffix([value]) <>

Sets the behavior of the abbreviations when you are using linear scale. This method accepts two options: "normal" (uses formatAbbreviate to determinate the abbreviation) and "smallest" (uses suffix from the smallest tick as reference in every tick).

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.timeLocale([value]) <>

Defines a custom locale object to be used in time scale. This object must include the following properties: dateTime, date, time, periods, days, shortDays, months, shortMonths. For more information, you can revise d3p.d3-time-format.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.title([value]) <>

If value is specified, sets the title of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.titleConfig([value]) <>

If value is specified, sets the title configuration of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.

# Axis.width([value]) <>

If value is specified, sets the overall width of the axis and returns the current class instance.

This is a static method of Axis, and is chainable with other methods of this Class.


AxisBottom <>

This is a global class, and extends all of the methods and functionality of Axis.

# new AxisBottom()

Shorthand method for creating an axis where the ticks are drawn below the horizontal domain path. Extends all functionality of the base Axis class.


AxisLeft <>

This is a global class, and extends all of the methods and functionality of Axis.

# new AxisLeft()

Shorthand method for creating an axis where the ticks are drawn to the left of the vertical domain path. Extends all functionality of the base Axis class.


AxisRight <>

This is a global class, and extends all of the methods and functionality of Axis.

# new AxisRight()

Shorthand method for creating an axis where the ticks are drawn to the right of the vertical domain path. Extends all functionality of the base Axis class.


AxisTop <>

This is a global class, and extends all of the methods and functionality of Axis.

# new AxisTop()

Shorthand method for creating an axis where the ticks are drawn above the vertical domain path. Extends all functionality of the base Axis class.


d3plus.date(date) <>

Returns a javascript Date object for a given a Number (representing either a 4-digit year or milliseconds since epoch), a String representing a Quarter (ie. "Q2 1987", mapping to the last day in that quarter), or a String that is in valid dateString format. Besides the 4-digit year parsing, this function is useful when needing to parse negative (BC) years, which the vanilla Date object cannot parse.

This is a global function.


Documentation generated on Fri, 28 Jun 2024 15:53:56 GMT

d3plus-axis's People

Contributors

cnavarreteliz avatar davelandry avatar ffigueroal avatar greenkeeper[bot] avatar nbond211 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

arajaram

d3plus-axis's Issues

allow maxSize to accept an accessor function

Expected Behavior

Would be great if the maxSize could be determined based on the available space. For example, when creating an AxisBottom, the user should be supplied the available height for the axis, and if they want to make the maxSize half of the proposed height, they would pass the following:

.maxSize(d => d / 2)

Where d is the value of the internal variable being used for the overall height.

Current Behavior

Currently, it expects a pixel value.

An in-range update of d3plus-format is breaking the build 🚨

The dependency d3plus-format was updated from 0.1.2 to 0.1.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3plus-format is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v0.1.3
  • updates documentation (432ce6d)
  • adds support for webpack treeshaking (000797b)
Commits

The new version differs by 3 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

axis ticks in jenk scale not appearing

Expected Behavior

Expect to see the label for ticks on a Jenks scale

Current Behavior

  1. If the label for the last tick is near the edge of the visualization, then the label for the last tick does not appear (though the tick mark line does).
  2. Labels closely clustered with other labels do not appear and it is not possible to see values for the ticks via tooltips

screen shot 2018-04-04 at 9 48 31 am

Potential suggestion

Maybe an alternative representation like the one below could be a useful option as a legend for jenks scales to avoid these issues?
cancer_rates_jenks

Steps to Reproduce (for bugs)

  1. https://jsfiddle.net/5f639ph1/

Your Environment

  • Browser Name: Chrome
  • Operating System and Version: OS X

An in-range update of d3-array is breaking the build 🚨

The dependency d3-array was updated from 1.2.4 to 1.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3-array is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 4 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

bars not aligning with x-axis after changing years

Expected Behavior

With no negative values, bars will remain fixed on x-axis.

Current Behavior

If selecting year 2013 then 2014 .. for some reason the bars seem to jump off the x-axis? For some reason the 0 value seems to get some padding added underneath and no longer lies on the x-axis

Steps to Reproduce (for bugs)

  1. https://jsfiddle.net/72zs3dm0/
  2. Click 2013
  3. Click 2014

Your Environment

  • Browser Name: Chrome
  • Operating System and Version: OS X 10.13.3

(feel free to move this to another d3plus repo if this isn't the right repo)

remove month labels in timeScale

Expected Behavior

In d3plus-timeline, scale shows month labels between years.

Current Behavior

Time scale shows months when there are so much width between year labels.

Steps to Reproduce (for bugs)

 new d3plus.Timeline()
      .domain([2001, 2004])
      .buttonBehavior("ticks")
      .ticks([2001, 2002, 2003, 2004])
      .width(800)
      .render();

Your Environment

  • Browser Name: Google Chrome
  • Operating System and Version: Macbook Pro High Sierra

An in-range update of d3plus-shape is breaking the build 🚨

The dependency d3plus-shape was updated from 0.16.0 to 0.16.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3plus-shape is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v0.16.1
  • updates documentation (3799c08)
  • enables webpack treeshaking (f2e5316)
Commits

The new version differs by 3 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of d3plus-dev is breaking the build 🚨

Version 0.4.7 of d3plus-dev just got published.

Branch Build failing 🚨
Dependency d3plus-dev
Current Version 0.4.6
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As d3plus-dev is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪


Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details
Release Notes v0.4.7
  • fixes erroneous extra period in docs (2244022)
Commits

The new version differs by 2 commits .

  • 2244022 fixes erroneous extra period in docs
  • a63b0c2 compiles v0.4.6

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

labels not rotating

Expected Behavior

Expecting axis labels to rotate 90 degree when there's not enough room horizontally.

Current Behavior

Some labels are hidden and labels appear horizontal

Steps to Reproduce (for bugs)

  1. https://jsfiddle.net/72zs3dm0/

Your Environment

  • Browser Name: Chrome
  • Operating System and Version: OS X 10.13.3

An in-range update of d3plus-text is breaking the build 🚨

The dependency d3plus-text was updated from 0.9.33 to 0.9.34.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3plus-text is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v0.9.34
  • updates documentation (0ad2cd4)
  • enables webpack treeshaking (13bfb4c)
Commits

The new version differs by 3 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of d3-scale is breaking the build 🚨

The dependency d3-scale was updated from 2.1.2 to 2.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3-scale is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 45 commits.

  • 8641fad 2.2.0
  • 0c30bf3 Fix #83 - add quantize.thresholds.
  • 058882b Fix #117 (sequential) - use midpoint when collapsed.
  • b0bdca4 Fix #117 - use midpoint when collapsed.
  • 30876a5 Fix export.
  • 3a62189 Update README.
  • fb5f0b3 Allow unlimited outer padding.
  • 5d767cb Fix #123 - document that quantize.domain must be ascending.
  • 4d89464 Fix #97 - add scale.unknown.
  • 19a03ec Add tests for tickFormat.
  • ac37960 Expose d3.tickFormat. Fixes #148.
  • 5bfe135 Update README.
  • b3d8ce3 Update README.
  • 9dad02a Shorten.
  • bf1adbc Convenience constructors for all!

There are 45 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

log scale stop working when domain changes

I am trying to change from linear scale to log scale and then change the domain of the scale, but when I try to do so, the visualization stops working with the following log:
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
I was taking a look at the code and found that the problem comes from the _getPosition function

_getPosition(d) {
    return this._scale === "log" && d === 0 ? (this._d3Scale || this._d3ScaleNegative).range()[this._d3Scale ? 0 : 1] : (this._scale === "log" && d < 0 ? this._d3ScaleNegative : this._d3Scale)(d);
}

Specifically when the this._scale === "log" && d < 0 condition is true, this._d3ScaleNegative is null.

Here is a jsfiddle that replicates this behavior: https://jsfiddle.net/ffigueroal/cr2hdxzj/

An in-range update of d3-selection is breaking the build 🚨

The dependency d3-selection was updated from 1.3.2 to 1.4.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3-selection is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v1.4.0
Commits

The new version differs by 12 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

add boolean to turn off secondary offsets

Current Behavior

There is logic that offsets the position of some labels further away from the axis in order to allow space for the text.

Expected Behavior

While this behavior usually works great, sometimes there is a need to just turn off this behavior. Let's set up a user-changeable boolean to disable this behavior. I'm not set on any name in particular. Maybe labelOffset?

Steps to Reproduce (for bugs)

screen shot 2018-03-23 at 10 12 31 am

use locale when formatting time axes

image

Hello, could be a good option set locale to use in axis. For example, now in Datachile we're using es,en languages, and dateFormat always is in english.

I was reading, and this one depend from d3-time-format that includes others languages like ar, it, fr, that can be applied in other projects with multilanguage.

An in-range update of d3plus-format is breaking the build 🚨

The dependency d3plus-format was updated from 0.1.4 to 0.1.5.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3plus-format is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v0.1.5
Commits

The new version differs by 16 commits.

  • 7d602b2 updates documentation
  • 3ad8af0 adds tests to delimiters for multiple locales
  • 36e9e12 enables support to delimiters
  • f72e6c7 creates test for estonian and spanish format
  • 98fac7b uses formatLocale instead of format function
  • b3bf676 adds grouping property to locales
  • 00b5a15 uses d3.format() function
  • 6ba84bc updates locale definitions
  • 49bf27a removes isNaN() function
  • c631d1b adds support to separators
  • 36c4e40 updates test file
  • b1e683d updates jsDOC file
  • 6ebcd15 adds support to en-GB, es-LA, es-ES and et locales
  • a4c3faa enables custom formatters according the locale selected
  • 35460d0 adds custom locale formatters file

There are 16 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

add labelRotation method

The .labelRotation( ) method should accept a boolean that determines whether horizontal axis labels are rotated -90 degrees.

Ticks overlapping

If i set specific ticks, the automatic ones still generate if I have a Width set.
But without width set the axis is too small and the ticks overlap.

An in-range update of d3-array is breaking the build 🚨

Version 1.0.3 of d3-array just got published.

Branch Build failing 🚨
Dependency d3-array
Current Version 1.0.2
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

As d3-array is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪


Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details
Release Notes v1.0.3
  • Update dependencies.
Commits

The new version differs by 6 commits .

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

add support for power scales with custom exponent

Originally posted by @xscotta in this issue

I have used the following options to tease out more of the data when the difference between max/min is great.
.yConfig({ scale: "sqrt" }) — This applies a fixed exponent of 0.5 to the axis
.yConfig({ scale: "log" }) — This applies a natural log(e) to the axis

If I want to specify an exponent of 0.4 or 0.3, can I use "pow"?
.yConfig({ scale: "pow" }) — And then specify the exponent somewhere?

The documentation on D3plus http://d3plus.org/examples/d3plus-axis/scale-time/ says All of the scales made available by d3-scale are usable for an Axis by passing the name of the scale, in all lowercase, to the .scale( ) method.

Thanks for your help, I looked through the D3plus code and documentation but couldn't work it out.

examples are not working locally

Expected Behavior

Axis labels should render!

Current Behavior

The examples currently seem to work on the live site, but locally (for screenshots and testing) they are acting very strange.

Steps to Reproduce (for bugs)

<!doctype html>
<html>

<head>

  <meta charset="utf-8">
  <script src="../build/d3plus-axis.full.js"></script>

</head>

<body>

  <svg width=600 height=300>
    <g id="my-axis"></g>
  </svg>

</body>

<script>

var bottom = new d3plus.AxisBottom()
  .select("#my-axis")
  .domain([0, 10])
  .width(600)
  .height(300)
  .render();

</script>

</html>

Your Environment

  • Browser Name: Chrome
  • Operating System and Version: macOS High Sierra

An in-range update of d3plus-format is breaking the build 🚨

The dependency d3plus-format was updated from 0.1.10 to 0.1.11.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3plus-format is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v0.1.11
  • updates documentation (060a60b)
  • includes test for decimal format in estonian and english (cc52126)
  • includes precision param into abbreviate function (023962b)
  • fixes weird behavior replacing decimal delimiter (77400d2)
  • includes test for round method (e615d54)
  • includes round property (8139047)
Commits

The new version differs by 7 commits.

  • 060a60b updates documentation
  • cc52126 includes test for decimal format in estonian and english
  • 023962b includes precision param into abbreviate function
  • 77400d2 fixes weird behavior replacing decimal delimiter
  • e615d54 includes test for round method
  • 8139047 includes round property
  • 6e1d9c2 compiles v0.1.10

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of d3plus-common is breaking the build 🚨

The dependency d3plus-common was updated from 0.6.44 to 0.6.45.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3plus-common is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v0.6.45
  • updates documentation (da66954)
  • rolls d3-array back to v1 (closes #97) (17ae338)
  • updates minor d3 dependencies (9b4e3f2)
  • adds support for webpack treeshaking (feaa6b2)
Commits

The new version differs by 5 commits.

  • da66954 updates documentation
  • 17ae338 rolls d3-array back to v1 (closes #97)
  • 9b4e3f2 updates minor d3 dependencies
  • feaa6b2 adds support for webpack treeshaking
  • 182a183 compiles v0.6.44

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of d3-transition is breaking the build 🚨

The dependency d3-transition was updated from 1.1.3 to 1.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3-transition is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 9 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Override the fontSize of Axis labels

I am using the Barchart function, and would like to override the default font-Size used for axis labels.
I presume it would be passed to the Axis module, so I am posting this request here.
The default fontSize for axis labels looks to be 10px.
I do not see a way to specify this using the conventions in the documentation.
For example:
.xConfig({ labelConfig: {fontSize: 20} })
One clarification, I want to override the labels on each tick on the x and y axis, not the name/title of the axis.
Thanks in advance.

EDIT:
I can change the size of the text to 14px by using fontMin/fontMax
.xConfig({ shapeConfig: { labelConfig: {fontMin: 14,fontMax:14} } })

...but it merely increases the actual pixel size, it does not reformat based on that new size. The text wrapping and line-height stay based on the original default 10px, and so defeats the point of changing the size when the label is a multi word, multi line, piece of text.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.