Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including plotly.js-locales with all npm packages installed. Try it out:

var plotlyJsLocales = require("plotly.js-locales")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

plotly.js-locales v1.52.2

Ready-to-use plotly.js locales

plotly.js-locales

Ready-to-use plotly.js locales

For more info on plotly.js, go to https://github.com/plotly/plotly.js

Installation

npm install plotly.js-locales

Usage

For example to setup the fr locale:

// ES6 module
import Plotly from 'plotly.js';
import locale from 'plotly.js-locales/fr';

// CommonJS
var Plotly = require('plotly.js');
var locale = require('plotly.js-locales/fr');

// then
Plotly.register(locale);
Plotly.setPlotConfig({locale: 'fr'})

Copyright and license

Code and documentation copyright 2020 Plotly, Inc.

Code released under the MIT license.

Docs released under the Creative Commons license.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free