{"id":23666591,"url":"https://github.com/redsift/d3-rs-bars","last_synced_at":"2025-07-18T00:06:55.649Z","repository":{"id":65599445,"uuid":"61413648","full_name":"redsift/d3-rs-bars","owner":"redsift","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-16T14:58:26.000Z","size":1189,"stargazers_count":1,"open_issues_count":7,"forks_count":1,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-05-21T00:13:40.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redsift.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-06-18T02:45:01.000Z","updated_at":"2023-08-15T20:07:56.000Z","dependencies_parsed_at":"2025-05-21T00:13:44.821Z","dependency_job_id":"4bc24e6b-2f01-42a9-aca3-dd19cdeff3cd","html_url":"https://github.com/redsift/d3-rs-bars","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redsift/d3-rs-bars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-bars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-bars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-bars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-bars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redsift","download_url":"https://codeload.github.com/redsift/d3-rs-bars/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-bars/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265683292,"owners_count":23810825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-29T07:33:11.836Z","updated_at":"2025-07-18T00:06:55.597Z","avatar_url":"https://github.com/redsift.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# d3-rs-bars\n\n`d3-rs-bars` generate a range of bar charts. Supports stacked and un-stacked series, hovers and highlights.\n\n## Builds\n\n[![Circle CI](https://img.shields.io/circleci/project/redsift/d3-rs-bars.svg?style=flat-square)](https://circleci.com/gh/redsift/d3-rs-bars)\n[![npm](https://img.shields.io/npm/v/@redsift/d3-rs-bars.svg?style=flat-square)](https://www.npmjs.com/package/@redsift/d3-rs-bars)\n[![MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/redsift/d3-rs-bars/master/LICENSE)\n\n## Example\n\n[View @redsift/d3-rs-bars on CodePen](http://codepen.io/rahulpowar/pen/mEOopX?editors=0010)\n\n[Full example @redsift/d3-rs-bars as REFViewer on CodePen](http://codepen.io/rahulpowar/full/OXgWYj/)\n\n[View @redsift/d3-rs-bars Collection on CodePen](http://codepen.io/collection/AYWgqm/)\n\n\n### Bottom orientation\n\n![Sample bars with a bottom orientation](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,200,3100,1000]\u0026orientation=bottom)\n\n### Left orientation as a series\n\n![Sample bars with a left orientation](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,200,3100,1000]\u0026orientation=left\u0026fill=global)\n\n### Top orientation as time\n\n![Sample bars with a top orientation and time label](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[{%22v%22:1,%22l%22:1466424812000},{%22v%22:2,%22l%22:1466511212000},{%22v%22:3,%22l%22:1466597612000},{%22v%22:300.5,%22l%22:1466684012000},{%22v%22:4000,%22l%22:1466770412000},{%22v%22:40000,%22l%22:1466856812000}]\u0026orientation=top\u0026labelTime=%25a%20%25d)\n\n### Right orientation as stacked time\n\n![Sample bar stack with a right orientation](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1, 10],[200,300],[3000, 100],[100, 1000]]\u0026orientation=right\u0026fill=series)\n\n### Side-by-Side with highlight and legend\n\n![Sample bars with a bottom orientation](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[100, 1000],[20000,30000],[30000, 10000],[10000, 10000]]\u0026orientation=bottom\u0026stacked=false\u0026legend=Alpha\u0026legend=Omega\u0026highlight=15000)\n\n## Usage\n\n### Browser\n\t\n\t\u003cscript src=\"//static.redsift.io/reusable/d3-rs-bars/latest/d3-rs-bars.umd-es2015.min.js\"\u003e\u003c/script\u003e\n\t\u003cscript\u003e\n\t\tvar chart = d3_rs_bars.html();\n\t\tchart.fill('global');\n\t\td3.select('body').datum([ 1, 2, 3, 10, 100 ]).call(chart);\n\t\u003c/script\u003e\n\n### ES6\n\n\timport { html as bars } from \"@redsift/d3-rs-bars\";\n\timport { select } from \"d3-selection\";\n\t\n\tlet chart = bars();\n\tselect('body').datum([ 1, 2, 3, 10, 100 ]).call(chart);\n\t\n### Require\n\n\tvar chart = require(\"@redsift/d3-rs-bars\");\n\tvar eml = chart.html();\n\t...\n\n### Datum\n\n- Simplest form, array of numbers: `[1,2,3,4...]` [Datum Bricks Example](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,20,4,10,30])\n- Using a set of array `[[1,2],[20,4],[10,30]]` to form stacked bar chart. [Datum Bricks Example](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1,2],[20,4],[10,30]])\n- The datum parameter can be altered using **Index** and **Value** to customise the ticks and the bar size. Index is used to customise the tick taking a String\nor an Integer as an argument and Value changes the bar size.The following datum uses a tick as a String [{\"l\":\"Boys\",\"v\":30},{\"l\":\"Girls\",\"v\":[83,20]}] where \"v\" can contain a single or an array of numbers. [Datum Bricks Example](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[{%22l%22:%22Boys%22,%22v%22:30},{%22l%22:%22Girls%22,%22v%22:[83,20]}])\n- Epoch time can also be supplied to Index as such [\"l\":1466684012000,\"v\":300.5,\"l\":1466770412000,\"v\":4000,\"l\":1466856812000,\"v\":40000] to include customised Calendar date to chart and using [String Specifiers](https://github.com/d3/d3-time-format#locale_format) as a parameter to `labelTime` property to set the date format. [Datum Bricks Example](https://bricks.redsift.io/reusable/d3-rs-bars.svg?_datum=%5B%7B%22l%22:1466684012000,%22v%22:300.5%7D,%7B%22l%22:1466770412000,%22v%22:4000%7D,%7B%22l%22:1466856812000,%22v%22:40000%7D%5D\u0026orientation=bottom\u0026labelTime=%25a)\n\n### Parameters\n\nProperty|Description|Transition|Preview\n----|-----------|----------|-------\n`classed`| *String* Customise SVG by adding, removing and toggling of CSS classes. |N|\n`background`|  *Sting, Array, Function* Change the background colour of the SVG container. Background colour can be set using a colour name, rgb or hex value. | Y|[![Preview of background property](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026background=grey)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026background=grey) \u003cbr\u003e Examples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026background=grey)/[CodePen](http://codepen.io/geervesh/pen/RGjQNB) \n`theme`| *String* Customise the chart theme including `'light'`(default) and `'dark'`. |Y| [![Preview of theme property](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026theme=dark)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026theme=dark) \u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026theme=dark)/ [CodePen](http://codepen.io/geervesh/pen/gwXvgE) \n`fill`| *Sting, Array, Function* Change the bar chart colour using a `String` which can take colour name, rgb or hex value as an argument. Using an `Array` of custom colours or use `'global'` to generate random colour  or supply a custom function.| Y| [![Preview of fill property uisng an array of colours](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026fill=yellow\u0026fill=orange\u0026fill=red)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026fill=yellow\u0026fill=orange\u0026fill=red) \u003cbr\u003e [![Preview of fill using random colours](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026fill=global)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026fill=global) \n`style`|*String* Custom CSS to inject into chart. |N|\n`width`, `height` |*Integer* Resize the height and width of the chart. `Default` `width`: `420` pixels. |Y| [![Preview of width and height property](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026width=200\u0026height=400)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026width=200\u0026height=400)\u003cbr\u003e Examples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026width=200\u0026height=400)/[CodePen](http://codepen.io/geervesh/pen/qaXgxg)\n`size` | *Integer* Resize the chart to a certain size changing both the width and height maintaining a default aspect ratio. |Y| [![Preview of size property](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026size=600)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026size=600)\u003cbr\u003e Examples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026size=600)/[CodePen](http://codepen.io/geervesh/pen/bwKJPB)\n`scale` | *Integer* Scale the entire chart by the scaling value. Used to zoom the chart or compensate for high DPI displays when rasterized. `Default` `scale`: 1 |Y| [![Preview of the scale property](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026scale=2)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026scale=2)\u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026scale=2)/[CodePen](http://codepen.io/geervesh/pen/BLVZNQ) \n`margin`| *Number* Change the chart margin inside of the SVG container. `Default margin: 26`.|Y|[![Preview of margin property](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026margin=35)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026margin=35)\u003cbr\u003e Examples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026margin=35),[CodePen](http://codepen.io/geervesh/pen/ORzpvv)\n`inset`| *Number* Resize the space inside the chart margin for the main chart element. This excludes items like legends. Comparing [Margin](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026margin=60\u0026legend=barChart) \u0026 [Inset](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026inset=60\u0026legend=barChart) legend where the legend get distorded while using margin on using a big value. |Y| [![Prview of inset property](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026inset=35)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026inset=40)\u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026inset=35)/[CodePen](http://codepen.io/geervesh/pen/BLJWLm) \n`highlight`| *(Array of)Integer* Highlight an array of value or a particular value. |Y| [![Preview of highlight property](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026highlight=5\u0026highlight=13)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026highlight=5\u0026highlight=13)\u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026highlight=5\u0026highlight=13)/[CodePen](http://codepen.io/geervesh/pen/pEdQxV)\n`minValue`,`maxValue`| *Number* Sets the minimum and maximum Value scale range. Note that for log scales, minValue must be \u003e 0.|Y| [![Preview of minValue and maxValue properties](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026minValue=2\u0026maxValue=15\u0026orientation=bottom)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026minValue=2\u0026maxValue=15\u0026orientation=bottom)\u003cbr\u003e Examples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026minValue=2\u0026maxValue=15\u0026orientation=bottom)/[CodePen](http://codepen.io/geervesh/pen/NRwqNW)\n`legend`| *(Array of) String* Add legends to the chart where array of `String` can be supply for multiple bar chart. | N| [![Preview of legend](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1,2],[3,10],[20,4]]\u0026legend=Oil%20\u0026legend=Water)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1,2],[3,10],[20,4]]\u0026legend=Oil%20\u0026legend=Water)\u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1,2],[3,10],[20,4]]\u0026legend=Oil%20\u0026legend=Water)/[CodePen](http://codepen.io/geervesh/pen/bwapjG)\n`legendOrientation` | *String* Position the legend, positions include top, bottom, left or right. `Default orientation : 'bottom'` | Y| [![Preview of legendOrientation property](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1,2],[3,10],[20,4]]\u0026legend=Oil%20\u0026legend=Water\u0026legendOrientation=top)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1,2],[3,10],[20,4]]\u0026legend=Oil%20\u0026legend=Water\u0026legendOrientation=top)\u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1,2],[3,10],[20,4]]\u0026legend=Oil%20\u0026legend=Water\u0026legendOrientation=top)/[CodePen](http://codepen.io/geervesh/pen/RGxVXO)\n`orientation`| *String* Set the orientation of the labels. `Default` oriented : `left`. Parameters include `right`,`left`,`top` and `bottom`. |Y|[![Preview of orientation property](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1,2],[3,10],[20,4]]\u0026orientation=top)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1,2],[3,10],[20,4]]\u0026orientation=top)\u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1,2],[3,10],[20,4]]\u0026orientation=top)/[CodePen](http://codepen.io/geervesh/pen/ZpabwP)\n`rotateValue`,`rotateIndex` | *Integer* Rotate the Index or Value ticks in degree where positive degree represent clockwise rotation and negative degree anticlockwise rotation. `Default` `rotation` : `0`. |Y| [![Preview of rotateIndex \u0026 rotateValue](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1,2],[3,10],[20,4]]\u0026rotateIndex=310\u0026rotateValue=%20240)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1,2],[3,10],[20,4]]\u0026rotateIndex=310\u0026rotateValue=%20240)\u003cbr\u003e Examples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[[1,2],[3,10],[20,4]]\u0026rotateIndex=310\u0026rotateValue=%20240)/[CodePen](http://codepen.io/geervesh/pen/NRXpZE)\n`labelTime`| *String* Interpret the label as a millisecond epoch and format it using [specified string](https://github.com/d3/d3-time-format#locale_format).|N|[![labelTime=%a %b](https://bricks.redsift.io/reusable/d3-rs-bars.svg?width=200\u0026height=200\u0026_datum=[{%22v%22:300.5,%22l%22:1466684012000},{%22v%22:4000,%22l%22:1466770412000},{%22v%22:40000,%22l%22:1466856812000}]\u0026orientation=bottom\u0026labelTime=%25a%20%25d)](https://bricks.redsift.io/reusable/d3-rs-bars.svg?width=200\u0026height=200\u0026_datum=[{%22v%22:300.5,%22l%22:1466684012000},{%22v%22:4000,%22l%22:1466770412000},{%22v%22:40000,%22l%22:1466856812000}]\u0026orientation=bottom\u0026labelTime=%25a%20%25d)\u003cbr\u003eExamples: [Bricks](https://bricks.redsift.io/reusable/d3-rs-bars.svg?width=200\u0026height=200\u0026_datum=[{%22v%22:300.5,%22l%22:1466684012000},{%22v%22:4000,%22l%22:1466770412000},{%22v%22:40000,%22l%22:1466856812000}]\u0026orientation=bottom\u0026labelTime=%25a%20%25d)/[CodePen](http://codepen.io/geervesh/pen/gwXvyO)\n`barSize`| *Interger* Change the size of the bar elements. Positive value set the absolute value in pixels. Negative values specify the scale relative to space between ticks. i.e. -0.5 will set the bar size to 50% of the width between the ticks. `Default` size set to `6`. |Y|[![Fixed bar size](https://bricks.redsift.io/reusable/d3-rs-bars.svg?width=200\u0026height=200\u0026_datum=[1,200,3100,1000]\u0026barSize=12)](https://bricks.redsift.io/reusable/d3-rs-bars.svg?width=200\u0026height=200\u0026_datum=[1,200,3100,1000]\u0026barSize=12)\u003cbr\u003e[Above Brick Example](https://bricks.redsift.io/reusable/d3-rs-bars.svg?width=200\u0026height=200\u0026_datum=[1,200,3100,1000]\u0026barSize=12)\u003cbr\u003e[![Dynamic bar size](https://bricks.redsift.io/reusable/d3-rs-bars.svg?width=200\u0026height=200\u0026_datum=[1,200,3100,1000]\u0026barSize=-0.5)](https://bricks.redsift.io/reusable/d3-rs-bars.svg?width=200\u0026height=200\u0026_datum=[1,200,3100,1000]\u0026barSize=-0.5)\u003cbr\u003e[Above Brick Example](https://bricks.redsift.io/reusable/d3-rs-bars.svg?width=200\u0026height=200\u0026_datum=[1,200,3100,1000]\u0026barSize=-0.5) / [CodePen](http://codepen.io/geervesh/pen/RGjyWp)\n`tickDisplayValue`| *String, Integer* Rename all tick to a single argument by supplying a String or a Number. |N| [![Preview of tickDisplayValue property](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026tickDisplayValue=Value)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026tickDisplayValue=Value)\u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026tickDisplayValue=Value)/[CodePen](http://codepen.io/geervesh/pen/kkvkOY) \n`label`| *String* Use the same labels for value using a String or an Integer. |N| [![Preview of label property](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026label=label)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026label=label)\u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026label=label)/[CodePen](http://codepen.io/geervesh/pen/KgkrBk)\n`tickFormatValue`, `tickFormatIndex`| *String, Function* Set the formatting string or function for the ticks. |N| [![Preview of tickFormatValue \u0026 tickFormatIndex](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026tickFormatValue=.2f\u0026tickFormatIndex=$.1s)\u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026tickFormatValue=.2f\u0026tickFormatIndex=$.1s)/ [CodePen](http://codepen.io/geervesh/pen/xEpRPX)\n`tickCountValue`, `tickCountIndex`| *Number, String, Interval Function* Hints at the number of ticks to set in the corresponding axis. Supports strings for example split [time intervals](https://github.com/d3/d3-time#intervals), apply when using epoch time format. `Default tickCountIndex: 6` | N | [![Preview of tickCountIndex \u0026 tickCountValue propertes](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026tickCountIndex=1\u0026tickCountValue=2)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026tickCountIndex=1\u0026tickCountValue=2) \u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026tickCountIndex=1\u0026tickCountValue=2)/[CodePens](http://codepen.io/geervesh/pen/dpqzVm?editors=1010)\n`displayTip`| *Integer* Position the tip display on the bar chart on hovering. |Y| [CodePen Example](http://codepen.io/geervesh/pen/qaVLpa)\n`displayHtml` | *String,Function* Customise the tip info. Function parameters include `(d,i)`, `d` represent data and `i` the dataset. |N| [CodePen Example](http://codepen.io/geervesh/pen/GjOPwd)\n`stacked`| *Boolean* Enable bar chart to stack onto each other. | Y| [![Preview of Stacked](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[%20[%201,%209%20],%20[%205,%202%20],%20[%202,%205%20],%20[%2010,%201%20]]\u0026stacked=false)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[%20[%201,%209%20],%20[%205,%202%20],%20[%202,%205%20],%20[%2010,%201%20]]\u0026stacked=false)\u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[%20[%201,%209%20],%20[%205,%202%20],%20[%202,%205%20],%20[%2010,%201%20]]\u0026stacked=false)/[CodePen](http://codepen.io/geervesh/pen/RGxazO)\n`value`| *Function* Generate a bar chart from selecting an object values carrying the data to generate the bar chart.|N| [CodePen Example](http://codepen.io/geervesh/pen/JRrKqg)\n`grid`| *Boolean* Enable grid to display on the chart. `Default`: `true`. |N| [![Preview of grid property](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026grid=false)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026grid=false)\u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[1,2,3,10,20]\u0026grid=false)/[CodePen](http://codepen.io/geervesh/pen/wzpzRE)\n`logValue`| *Integer* Alter the grid spacing for value. |Y| [![Preview of logValue](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[%20[%203,%209%20],%20[%205,%202%20],%20[%2010,%205%20],%20[%2020,%202%20]%20]\u0026logValue=20)](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[%20[%203,%209%20],%20[%205,%202%20],%20[%2010,%205%20],%20[%2020,%202%20]%20]\u0026logValue=20)\u003cbr\u003eExamples: [Bricks](https://bricks.redsift.cloud/reusable/d3-rs-bars.svg?_datum=[%20[%203,%209%20],%20[%205,%202%20],%20[%2010,%205%20],%20[%2020,%202%20]%20]\u0026logValue=20)/[CodePen](http://codepen.io/geervesh/pen/RGxazO)\n`language`| *String* Change the language format of the chart affecting digit, currency and time formats. |N| [CodePen Example](http://codepen.io/geervesh/pen/RGxRob)\n\n### Time\n\nThe two main time formatter available are UTC and Local Time. UTC uses the time standard applied across the world which is unaffected by Daylight Saving Time whereas Local Time is set to your local timezone. \nTo use any of the formatters, string specifiers is passed to the [`labelTime`](http://codepen.io/geervesh/pen/gwXvyO) function. To apply UTC format, d3.utcFormat(*specifier*) is used as a parameter to `labelTime`, *specifier* being the [string specifiers](https://github.com/d3/d3-time-format#locale_format). When using Local Time, only string specifiers can be passed to `labelTime` since by default the time format is set to Local Time.\n\nAdditional information about Time format for D3 can be found [here](https://github.com/d3/d3-time-format#d3-time-format).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsift%2Fd3-rs-bars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredsift%2Fd3-rs-bars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsift%2Fd3-rs-bars/lists"}