From 20b1fd39df84a85ea34dfbd46058f117d0104231 Mon Sep 17 00:00:00 2001 From: Adam Pearce <1wheel@gmail.com> Date: Thu, 21 Feb 2019 15:41:10 -0500 Subject: [PATCH] removes attr camelCase warning --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 710be53..7a10a81 100644 --- a/README.md +++ b/README.md @@ -74,12 +74,6 @@ selection.at({fontSize: 10, textAnchor: 'end', fontWeight: 600}) With syntax highlighting on, it is a little easier to see the difference between keys and values when everything isn't a string. Plus there's less typing! -Confusingly, there are several SVG attributes that are supposed to be camelCase. To avoid the automatic hypenation, use `attr`: - -```js -selection.attr('startOffset', 10) -``` - # selection.st(name[, value]) [<>](https://github.com/gka/d3-jetpack/blob/master/src/st.js "Source") Like `at`, but for `style`. Additionally, when a number is passed to a style that requires a unit of measure, like `margin-top` or `font-size`, `px` is automatically appended. Instead of