d3plus v1.9.0 Release Notes

Release Date: 2016-02-13 // about 8 years ago
  • ๐Ÿš€ Long time no see. This release brings with it a few new visualization types and a plethora of bug fixes. Thanks to everyone for their patience with this release, as things have been a bit hectic for us the past few months.

    ๐Ÿš€ This release will also (probably) be the last major release before 2.0. We've started separating the different facets of the library into separate modules (check out the new text wrap module), and you can expect more news coming in the next few months outlining the roadmap.

    Highlights

    • ๐Ÿ†• new "radar" visualization type: live example
    • ๐Ÿ†• new "sankey" visualization type: live example
    • shapes can now be given a custom .class( ) for their DOM elements (#379)
    • a custom stroke width can now be given to individual lines in a line plot using the .size( ) method
    • ๐Ÿ‘ text wrapping now supports manual line breaks using \n (#362)
    • if the .text( ) key is set, bar charts will use that text as a label directly inside the bar (#354)
    • โž• adds share percentage to pie chart tooltips
    • โž• adds proper .id( ) nesting to pie charts

    Axes Improvements

    • ๐Ÿ‘ x/y charts now support a second axis with the new .x2( ) and .y2( ) methods
    • ๐Ÿ‘ "ticks" of .x( ) and .y( ) now support being passed a custom array of values to be use for tick marks (#312)
    • axis tick labels can be set using an array of values or turned off completely by setting the "labels" of the advanced "ticks" object for .x( ) and .y( ) to false
    • โž• adds a "ticks" boolean to .axes( ) which will toggle the small data ticks seen in scatter plots
    • โž• adds a "spacing" (ie. css letter-spacing) option to the font styles of each axes "axis", "label", and "ticks"
    • the "size" and "position" of bars in a bar chart can now "persist" across each discrete bin

    Grab Bag

    • โž• adds a "labels" boolean to .legend( ) to turn off text labels inside of legend squares
    • the "size" property of the .legend( ) "font" object now accepts an array of sizes for textwrap resizing
    • ๐Ÿ†• new "fullscreen" boolean in .tooltip( ) that allows large tooltips to be appended to the document body (instead of the container element)
    • ๐Ÿ†• new "stacked" boolean in .tooltip( ) that allows HTML content to always appear stacked underneath the data in large tooltips
    • large tooltips can now be closed by pressing ESC
    • smarter logic for label colors on dark backgrounds
    • the "key" to be used inside of a Topojson object can now be manually set in .coords( )
    • ๐Ÿ‘ all D3 map projections are now supported in .coords( ), in addition to custom projection functions (#240)
    • ๐Ÿ‘ d3plus.util.closest now supports string comparison
    • ๐Ÿ†• new cross-browser page scroll position detection with d3plus.client.scroll
    • โž• adds Korean ("ko_KR") formatting and translations
    • 0๏ธโƒฃ switches ordering of yellow and blue in the default color scale

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  fixes vertical alignment of text in circles (#412)
    • d3plus.string.title would capitalize the string after an apostrophe (was Reese'S but is now Reese's)
    • ๐Ÿ›  fixes some textwrapping issues with ampersands
    • ๐Ÿ›  fixes a Microsoft Edge textwrapping x positioning bug (#402)
    • ๐Ÿ›  fixes bubble sorting (#417)
    • .legend( ) now properly sorts by "id" (#369)
    • ๐Ÿ›  fixes problems where UI would break with a 0 number id
    • ๐Ÿ’… form elements now correctly inherit all parent styles and formatting
    • โšก๏ธ geo map labels now update correctly on redraw
    • "value" can now be passed as an advanced .coords( ) object property (#383)
    • a couple of small speed boosts to geo maps
    • ๐Ÿ›  a TON of bar chart discrete axis fixes
    • ๐Ÿ›  fixes right-to-left textwrapping
    • mouse tooltips now hide while panning or scrolling
    • "axis" in the .x( ) and .y( ) methods now refers to the correct axis (#403)
    • d3plus.client.ie now correctly detects IE11 and Edge
    • a handful of other IE and Firefox bugs

    ๐Ÿš€ As with all large releases, there's bound to be bugs we've missed. Keep those Issues coming in!