HTML
CSS
Babel
Result
Skip Results Iframe
EDIT ON
Live
Live
Live
This Pen is owned by
Oli Sturm
on
CodePen
.
See more by @oliversturm on CodePen
External CSS
https://cdn3.devexpress.com/jslib/16.1.7/css/dx.common.css
https://cdn3.devexpress.com/jslib/16.1.7/css/dx.light.css
External JavaScript
https://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js
https://cdn3.devexpress.com/jslib/16.1.7/js/dx.all.js
https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.min.js
https://d1yfqaepocu4bl.cloudfront.net/0.1.9/data-transformer-browser.min.js
{"__browser":{"country":"US","device":"unknown_device","mobile":false,"name":"unknown browser","platform":"unknown_platform","version":"0"},"__constants":{},"__CPDATA":{"domain_iframe":"https://cdpn.io","environment":"production","host":"codepen.io","iframe_allow":"accelerometer *; ambient-light-sensor *; camera *; display-capture *; encrypted-media *; geolocation *; gyroscope *; microphone *; midi *; payment *; vr *; web-share *; serial *; xr-spatial-tracking *","iframe_sandbox":"allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups-to-escape-sandbox allow-popups allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation"},"__graphql":{"data":{"errors":[{"message":"Cannot return null for non-nullable field Query.sessionUser"}],"data":null},"url":"https://codepen.io/graphql","api":"cprails"},"__pay_stripe_public_key":"pk_live_2GndomDfiklqpSNQn8FrGuwZSMIMzha7DkLJqlYe7IR0ihKAlKdiHg68JJc5eVPt68rzAjzAAVXcUwjySHRCsgjQQ00gtRBUFNH","__pay_braintree_env":"production","__boomboom":{"serve_url":"https://cdpn.io/cpe/boomboom","store_url":"https://codepen.io/cpe/boomboom/store"},"__pageType":"embed","__item":"{\"editor_settings\":{\"auto_run\":false,\"autocomplete\":false,\"code_folding\":true,\"css_pre_processor\":\"none\",\"css_prefix\":\"neither\",\"css_starter\":\"neither\",\"emmet_active\":true,\"font_size\":14,\"font_type\":\"system\",\"format_on_save\":false,\"html_pre_processor\":\"none\",\"indent_with\":\"spaces\",\"js_pre_processor\":\"none\",\"key_bindings\":\"normal\",\"line_numbers\":true,\"line_wrapping\":true,\"match_brackets\":true,\"snippets\":{\"markupSnippets\":{},\"stylesheetSnippets\":{}},\"tab_size\":2,\"theme\":\"twilight\",\"id\":\"xREroR\",\"auto_save\":true},\"hashid\":\"xREroR\",\"itemType\":\"pen\",\"resources\":[{\"url\":\"https://cdn3.devexpress.com/jslib/16.1.7/css/dx.common.css\",\"order\":0,\"resource_type\":\"css\",\"par_content\":\"\"},{\"url\":\"https://cdn3.devexpress.com/jslib/16.1.7/css/dx.light.css\",\"order\":0,\"resource_type\":\"css\",\"par_content\":\"\"},{\"url\":\"https://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js\",\"order\":0,\"resource_type\":\"js\",\"par_content\":\"\"},{\"url\":\"https://cdn3.devexpress.com/jslib/16.1.7/js/dx.all.js\",\"order\":0,\"resource_type\":\"js\",\"par_content\":\"\"},{\"url\":\"https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.min.js\",\"order\":0,\"resource_type\":\"js\",\"par_content\":\"\"},{\"url\":\"https://d1yfqaepocu4bl.cloudfront.net/0.1.9/data-transformer-browser.min.js\",\"order\":0,\"resource_type\":\"js\",\"par_content\":\"\"}],\"tags\":[],\"id\":10975974,\"user_id\":856873,\"html\":\"\\n<div id=\\\"chart\\\"></div>\\n\",\"css\":\"#chart {\\n height: 200px;\\n}\",\"js\":\"const data = [\\n { place: \\\"Los Angeles, CA, USA\\\", values: [\\n\\t{ month: \\\"Jan\\\", degreesC: 13.7 },\\n\\t{ month: \\\"Feb\\\", degreesC: 14.2 },\\n\\t{ month: \\\"Mar\\\", degreesC: 14.4 },\\n\\t{ month: \\\"Apr\\\", degreesC: 15.6 },\\n\\t{ month: \\\"May\\\", degreesC: 17.0 },\\n\\t{ month: \\\"Jun\\\", degreesC: 18.7 },\\n\\t{ month: \\\"Jul\\\", degreesC: 20.6 },\\n\\t{ month: \\\"Aug\\\", degreesC: 21.3 },\\n\\t{ month: \\\"Sep\\\", degreesC: 21.0 },\\n\\t{ month: \\\"Oct\\\", degreesC: 19.3 },\\n\\t{ month: \\\"Nov\\\", degreesC: 16.4 },\\n\\t{ month: \\\"Dec\\\", degreesC: 13.8 }] },\\n { place: \\\"Miami, FL, USA\\\", values: [\\n\\t{ month: \\\"Jan\\\", degreesC: 6.9 },\\n\\t{ month: \\\"Feb\\\", degreesC: 9.0 },\\n\\t{ month: \\\"Mar\\\", degreesC: 11.7 },\\n\\t{ month: \\\"Apr\\\", degreesC: 16.1 },\\n\\t{ month: \\\"May\\\", degreesC: 20.9 },\\n\\t{ month: \\\"Jun\\\", degreesC: 26.2 },\\n\\t{ month: \\\"Jul\\\", degreesC: 28.5 },\\n\\t{ month: \\\"Aug\\\", degreesC: 27.2 },\\n\\t{ month: \\\"Sep\\\", degreesC: 24.5 },\\n\\t{ month: \\\"Oct\\\", degreesC: 18.6 },\\n\\t{ month: \\\"Nov\\\", degreesC: 11.7 },\\n\\t{ month: \\\"Dec\\\", degreesC: 7.5 }] },\\n { place: \\\"London, UK\\\", values: [\\n\\t{ month: \\\"Jan\\\", degreesC: 3.8 },\\n\\t{ month: \\\"Feb\\\", degreesC: 4.0 },\\n\\t{ month: \\\"Mar\\\", degreesC: 5.8 },\\n\\t{ month: \\\"Apr\\\", degreesC: 7.9 },\\n\\t{ month: \\\"May\\\", degreesC: 11.3 },\\n\\t{ month: \\\"Jun\\\", degreesC: 14.4 },\\n\\t{ month: \\\"Jul\\\", degreesC: 16.5 },\\n\\t{ month: \\\"Aug\\\", degreesC: 16.1 },\\n\\t{ month: \\\"Sep\\\", degreesC: 13.8 },\\n\\t{ month: \\\"Oct\\\", degreesC: 10.8 },\\n\\t{ month: \\\"Nov\\\", degreesC: 6.6 },\\n\\t{ month: \\\"Dec\\\", degreesC: 4.7 }] },\\n { place: \\\"Novosibirsk, RUS\\\", values: [\\n\\t{ month: \\\"Jan\\\", degreesC: -16.0 },\\n\\t{ month: \\\"Feb\\\", degreesC: -15.8 },\\n\\t{ month: \\\"Mar\\\", degreesC: -7.5 },\\n\\t{ month: \\\"Apr\\\", degreesC: 1.6 },\\n\\t{ month: \\\"May\\\", degreesC: 10.4 },\\n\\t{ month: \\\"Jun\\\", degreesC: 16.1 },\\n\\t{ month: \\\"Jul\\\", degreesC: 18.3 },\\n\\t{ month: \\\"Aug\\\", degreesC: 16.2 },\\n\\t{ month: \\\"Sep\\\", degreesC: 10.1 },\\n\\t{ month: \\\"Oct\\\", degreesC: 2.1 },\\n\\t{ month: \\\"Nov\\\", degreesC: -8.3 },\\n\\t{ month: \\\"Dec\\\", degreesC: -14.8 }] }\\n \\n];\\n\\n$(() => {\\n $(\\\"#chart\\\").dxChart({ \\n dataSource: Array.from(dataTransformer.flattenOneToN(data)),\\n commonSeriesSettings: {\\n argumentField: \\\"month\\\",\\n valueField: \\\"degreesC\\\",\\n type: \\\"line\\\"\\n },\\n seriesTemplate: {\\n nameField: \\\"place\\\"\\n }\\n });\\n});\\n\",\"html_pre_processor\":\"none\",\"css_pre_processor\":\"none\",\"js_pre_processor\":\"babel\",\"html_classes\":\"\",\"css_starter\":\"neither\",\"js_library\":null,\"created_at\":\"2016-11-16T09:26:37.000Z\",\"updated_at\":\"2016-11-16T09:28:03.000Z\",\"title\":\"Chart line series with individual data (seriesTemplate, data-transformer)\",\"description\":\"\",\"slug_hash\":\"xREroR\",\"head\":\"\",\"private\":false,\"has_animation\":false,\"team_id\":0,\"css_prefix\":\"neither\",\"template\":false,\"parent_id\":10652288,\"comments_count\":0,\"custom_screenshot_filename\":null,\"loves_count\":0,\"pick\":false,\"popularity_score\":0,\"views_count\":0,\"pick_visible_at\":null,\"cpid\":\"01586c75-9cc8-7691-9a80-6d2256b25db7\",\"is_new_editor_pen\":false,\"protected\":false,\"access\":\"Public\",\"pen_hash\":null}","__processorsMap":{"autoprefixer":"autoprefixer-10","babel":"babel-7","coffeescript":"coffeescript-2","format-1":"format-1","flutter":"flutter-1","haml":"haml-4","less":"less-3","lint-1":"lint-1","livescript":"livescript-1","markdown":"markdown-11","postcss":"postcss-7","pug":"pug-2","sass":"sass-1","scss":"sass-1","sass-ruby-3":"sass-ruby-3","sass-ruby-compass-3":"sass-ruby-compass-3","slim":"slim-3","stylus":"stylus-0","typescript":"typescript-4","vue":"vue-2","vue3":"vue-3"},"__favicon_mask_icon":"https://cpwebassets.codepen.io/assets/favicon/logo-pin-b4b4269c16397ad2f0f7a01bcdf513a1994f4c94b8af2f191c09eb0d601762b1.svg","__favicon_shortcut_icon":"https://cpwebassets.codepen.io/assets/favicon/favicon-aec34940fbc1a6e787974dcd360f2c6b63348d4b1f4e06c77743096d55480f33.ico","__path_to_iframe_console_runner":"https://cpwebassets.codepen.io/assets/editor/iframe/iframeConsoleRunner-6d8bf8b4b479137260842506acbb12717dace0823c023e08b96360e60b0840d9.js","__path_to_iframe_refresh_css":"https://cpwebassets.codepen.io/assets/editor/iframe/iframeRefreshCSS-44fe83e49b63affec96918c9af88c0d80b209a862cf87ac46bc933074b8c557d.js","__path_to_iframe_runtime_errors":"https://cpwebassets.codepen.io/assets/editor/iframe/iframeRuntimeErrors-4f205f2c14e769b448bcf477de2938c681660d5038bc464e3700256713ebe261.js","__path_to_processor_worker":"https://cpwebassets.codepen.io/assets/packs/router.js","__path_to_stop_execution_on_timeout":"https://cpwebassets.codepen.io/assets/common/stopExecutionOnTimeout-2c7831bb44f98c1391d6a4ffda0e1fd302503391ca806e7fcc7b9b87197aec26.js","__pen_normalize_css_url":"https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css","__pen_prefix_free_url":"https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js","__pen_reset_css_url":"https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css","__path_to_infinite_loop_detection":"https://cpwebassets.codepen.io/assets/packs/js/infiniteLoopDetection-07db07496998e6dde62c.js"}