Meta tags:
description= Contribute to plotly/angular-plotly.js development by creating an account on GitHub.;
Headings (most frequently used words):
plotly, navigation, js, repository, about, files, customizing, footer, resources, code, of, conduct, stars, watchers, forks, props, via, module, angular, menu, latest, commit, history, folders, and, content, installation, quick, start, api, reference, the, bundle, development, faq, license, releases, sponsor, this, project, packages, used, by, contributors, languages, basic, event, handler, plot, component, cdn, window,
Text of the page (most frequently used words):
#plotly (65), the (51), #angular (35), function (35), plot (28), and (24), for (21), you (20), github (15), layout (15), this (14), from (14), code (13), see (12), use (12), undefined (12), import (11), json (11), when (11), component (11), window (10), graph (10), project (9), version (9), data (9), package (8), object (8), into (8), true (8), can (7), license (7), npm (7), build (7), your (7), support (7), repository (6), custom (6), commonmodule (6), ngmodule (6), will (6), https (6), plotlyviacdnmodule (6), basic (6), event (6), javascript (6), security (5), conduct (5), readme (5), want (5), plotlyviawindowmodule (5), bundle (5), class (5), export (5), min (5), projects (5), below (5), cdn (5), cloudflare (5), with (5), div (5), type (5), props (5), boolean (5), which (5), all (5), update (5), changelog (5), information (4), navigation (4), used (4), forks (4), stars (4), 242 (4), resources (4), description (4), faq (4), run (4), start (4), install (4), core (4), must (4), module (4), add (4), dist (4), name (4), latest (4), forroot (4), full (4), set (4), user (4), template (4), innerstyle (4), width (4), 100 (4), height (4), example (4), callback (4), executed (4), api (4), graphdiv (4), config (4), reference (4), migration (4), maintenance (4), png (4), signed (4), copilot (4), provided (3), about (3), please (3), development (3), appmodule (3), imports (3), common (3), file (3), scripts (3), bundlename (3), default (3), autosize (3), handler (3), public (3), useresizehandler (3), resize (3), false (3), rendered (3), parameter (3), figure (3), new (3), property (3), revision (3), should (3), documentation (3), plotlymodule (3), master (3), more (3), files (3), commit (3), actions (3), quality (3), another (3), tab (3), refresh (3), session (3), reload (3), sign (3), developers (3), customer (3), enterprise (3), grade (3), features (3), not (2), community (2), status (2), footer (2), 2026 (2), inc (2), sponsor (2), report (2), watching (2), watchers (2), properties (2), activity (2), website (2), topics (2), check (2), verify (2), contents (2), app (2), wish (2), force (2), shown (2), different (2), generated (2), cli (2), library (2), before (2), options (2), bundled (2), make (2), via (2), any (2), url (2), doesn (2), mandatory (2), supply (2), cdnprovider (2), optional (2), null (2), cartesian (2), geo (2), gl3d (2), gl2d (2), mapbox (2), finance (2), argument (2), also (2), together (2), customizing (2), defined (2), why (2), prop (2), through (2), following (2), events (2), fancy (2), title (2), bar (2), plotlyexamplecomponent (2), position (2), relative (2), selector (2), responsive (2), element (2), using (2), documented (2), classname (2), compatibility (2), style (2), display (2), string (2), attributes (2), purge (2), initialized (2), flag (2), determines (2), watch (2), changes (2), list (2), objects (2), array (2), types (2), plotlyjs (2), quick (2), save (2), installation (2), guide (2), content (2), lts (2), major (2), items (2), tsconfig (2), lock (2), eslint (2), devdocs (2), code_of_conduct (2), gitignore (2), editorconfig (2), last (2), message (2), 410 (2), commits (2), menu (2), refs (2), heads (2), star (2), settings (2), insights (2), universe (2), training (2), integrations (2), stories (2), center (2), learn (2), business (2), fixes (2), products (2), secret (2), perform, that, action, time, share, personal, manage, cookies, contact, docs, privacy, terms, languages, contributors, packages, releases, 2019, mit, exact, test, tests, demo, get, started, above, assemble, own, customized, precompiled, include, process, loaded, available, thus, vendor, node_modules, architect, added, avoid, being, final, happen, first, path, global, script, directly, self, hosted, customurl, fetch, requested, however, either, choose, strict, pin, reproducible, builds, load, optionally, optimize, loading, way, both, modules, bundles, peer, dependency, within, output, results, huge, outputs, itself, 3mb, makes, really, slow, minifies, everything, serve, prod, put, root, resulting, front, elements, could, useful, implementing, overlays, supports, injection, plotly_sunburstclick, sunburstclick, plotly_treemapclick, treemapclick, plotly_relayouting, relayouting, plotly_unhover, unhover, plotly_transitioninterrupted, transitioninterrupted, plotly_transitioning, transitioning, plotly_sliderstart, sliderstart, plotly_sliderend, sliderend, plotly_sliderchange, sliderchange, plotly_selecting, selecting, plotly_selected, selected, plotly_redraw, redraw, plotly_restyle, restyle, plotly_relayout, relayout, plotly_react, react, plotly_legenddoubleclick, legenddoubleclick, plotly_legendclick, legendclick, plotly_hover, hover, plotly_framework, framework, plotly_doubleclick, doubleclick, plotly_deselect, deselect, plotly_clickannotation, clickannotation, click, plotly_click, plotlyclick, plotly_buttonclicked, buttonclicked, plotly_beforeexport, beforeexport, plotly_autosize, plotly_animationinterrupted, animationinterrupted, plotly_animatingframe, animatingframe, plotly_animated, animated, plotly_afterplot, afterplot, plotly_afterexport, afterexport, obs, handlers, specific, may, attached, fill, its, containing, resized, dimensions, some, similar, values, while, setting, leaving, implement, behaviour, here, fluid, note, adds, call, assign, debugging, debug, deprecated, alias, inline, block, applied, assigned, divid, method, rejects, err, error, unmounts, strips, private, updated, due, interacts, after, only, increased, updateonlywithrevision, updateondatachange, updateonlayoutchange, causes, incremented, number, configuration, frame, frames, trace, attribute, listing, chart, like, 240, 320, red, color, marker, lines, points, mode, scatter, then, main, dev, upgrade, instructions, historical, release, details, are, v20, v21, active, branch, since, follows, supported, matching, line, view, date, folders, history, open, tags, branches, fork, change, notification, notifications, pull, requests, issues, dismiss, alert, switched, accounts, out, appearance, search, pricing, talks, workshops, what, next, partners, company, forum, webinars, blog, resource, connect, premium, advanced, ons, trust, evaluate, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, improvements, across, one, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, review, collaboration, platform, skip,
Text of the page (random words):
github plotly angular plotly js at refs heads master github skip to content navigation menu sign in products platform github repository hosting code review and collaboration copilot ai coding agent for tasks projects and automated work build ship actions ci cd and automation code quality quality analysis fixes and enforcement codespaces cloud development environments secure code security vulnerability detection and remediation secret protection secret scanning and leak prevention all features developers learn documentation training certifications build build with copilot customize copilot integrations explore trending repos github sponsors developer articles changelog changelog your source for the latest features improvements and fixes across github products all in one place businesses by stage enterprises team startups nonprofits by industry healthcare financial services manufacturing government see all industries evaluate github why github customer stories business insights trust center add ons github advanced security enterprise grade code security copilot for business enterprise grade ai features premium support enterprise grade 24 7 support resources learn connect documentation resource center blog events webinars community forum customer stories integrations support customer support training github status company about partners changelog github universe github universe the event for developers by developers talks workshops and what s next for github pricing search sign in sign up appearance settings you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message plotly angular plotly js repository navigation code issues 36 36 pull requests 17 17 actions projects security and quality insights more items angular plotly js public sponsor notifications you must be signed in to change notification settings fork 81 81 star 242 242 you must be signed in to star a repository about no description website or topics provided resources readme license code of conduct code of conduct activity custom properties stars 242 stars watchers 8 watching forks 81 forks report repository refs heads master branches tags go to file code open more actions menu latest commit history 410 commits 410 commits folders and files name name last commit message last commit date github github projects projects scripts scripts editorconfig editorconfig gitignore gitignore changelog md changelog md code_of_conduct md code_of_conduct md faq md faq md license license maintenance md maintenance md migration md migration md readme md readme md angular plotly png angular plotly png angular json angular json devdocs md devdocs md eslint config js eslint config js example png example png package lock json package lock json package json package json tsconfig json tsconfig json view all files repository files navigation readme code of conduct license more items angular plotly js a plotly js angular component from plotly since version 20 the angular plotly js major follows the supported angular major install the matching package line angular plotly js angular branch support 22 x 22 x master active 21 x 21 x v21 lts 20 x 20 x v20 lts through 2026 11 28 maintenance and release details are documented in maintenance md if you want to use with angular 8 x please use version angular plotly js 1 x for upgrade instructions and historical angular package compatibility see the migration guide content installation migration guide quick start api basic props event handler props development installation using the angular cli to start a new project ng new my project cd my project npm install angular plotly js plotly js dist min save npm install types plotly js dist min save dev quick start add the plotlymodule into the main app module of your project import ngmodule from angular core import commonmodule from angular common import as plotlyjs from plotly js dist min import plotlymodule from angular plotly js ngmodule imports commonmodule plotlymodule forroot plotlyjs export class appmodule then use the plotly plot component to display the graph import component from angular core component selector plotly example template plotly plot data graph data layout graph layout plotly plot export class plotlyexamplecomponent public graph data x 1 2 3 y 2 6 3 type scatter mode lines points marker color red x 1 2 3 y 2 5 3 type bar layout width 320 height 240 title a fancy plot you should see a plot like this for a full description of plotly chart types and attributes see the following resources plotly javascript api documentation full plotly js attribute listing api reference basic props prop type default description data array list of trace objects see https plot ly javascript reference layout object undefined layout object see https plot ly javascript reference layout frames array undefined list of frame objects see https plot ly javascript reference config object undefined config object see https plot ly javascript configuration options revision number undefined when provided causes the plot to update when the revision is incremented updateonlayoutchange boolean true flag which determines if this component should watch to changes on layout property and update the graph updateondatachange boolean true flag which determines if this component should watch to changes on data property and update the graph updateonlywithrevision boolean false if true this component will update only when the property revision is increased initialized function figure graphdiv undefined callback executed after plot is initialized see below for parameter information update function figure graphdiv undefined callback executed when when a plot is updated due to new data or layout or when user interacts with a plot see below for parameter information purge function figure graphdiv undefined callback executed when component unmounts before plotly purge strips the graphdiv of all private attributes see below for parameter information error function err undefined callback executed when a plotly js api method rejects divid string undefined id assigned to the div into which the plot is rendered classname string undefined applied to the div into which the plot is rendered innerstyle object position relative display inline block used to style the div into which the plot is rendered style object undefined deprecated compatibility alias for innerstyle debug boolean false assign the graph div to window gd for debugging useresizehandler boolean false when true adds a call to plotly plot resize as a window resize event handler note to make a plot responsive i e to fill its containing element and resize when the window is resized use innerstyle or classname to set the dimensions of the element i e using width 100 height 100 or some similar values and set useresizehandler to true while setting layout autosize to true and leaving layout height and layout width undefined this will implement the behaviour documented here https plot ly javascript responsive fluid layout component selector plotly example template plotly plot data graph data layout graph layout useresizehandler true innerstyle position relative width 100 height 100 plotly plot export class plotlyexamplecomponent public graph data x 1 2 3 y 2 5 3 type bar layout autosize true title a fancy plot event handler props event handlers for specific plotly js events may be attached through the following props prop type plotly event obs afterexport function plotly_afterexport afterplot function plotly_afterplot animated function plotly_animated animatingframe function plotly_animatingframe animationinterrupted function plotly_animationinterrupted autosize function plotly_autosize beforeexport function plotly_beforeexport buttonclicked function plotly_buttonclicked plotlyclick function plotly_click why not click clickannotation function plotly_clickannotation deselect function plotly_deselect doubleclick function plotly_doubleclick framework function plotly_framework hover function plotly_hover legendclick function plotly_legendclick legenddoubleclick function plotly_legenddoubleclick react function plotly_react relayout function plotly_relayout restyle function plotly_restyle redraw function plotly_redraw selected function plotly_selected selecting function plotly_selecting sliderchange function plotly_sliderchange sliderend function plotly_sliderend sliderstart function plotly_sliderstart transitioning function plotly_transitioning transitioninterrupted function plotly_transitioninterrupted unhover function plotly_unhover relayouting function plotly_relayouting treemapclick function plotly_treemapclick sunburstclick function plotly_sunburstclick customizing plotly plot component plotly plot component supports injection of user defined contents plotly plot user defined angular template plotly plot will put the user template into the root div of the resulting plotly js plot in front of any plotly generated elements this could be useful for implementing plot overlays customizing the plotly js bundle by default this library bundles plotly js from the peer dependency together within the output this results on huge outputs for plotly js itself is 3mb when bundled it also makes the build with ng serve prod really slow for it minifies everything together if you wish to optimize loading plotly js in a different way please check both plotlyviacdnmodule and plotlyviawindowmodule modules below plotly via cdn module if you want to load plotly js from a cdn use the plotlyviacdnmodule and set on the version argument the plotly js s version you want to use and optionally you can also set on the bundlename argument the plotly js s build you want to use import ngmodule from angular core import commonmodule from angular common import plotlyviacdnmodule from angular plotly js ngmodule imports commonmodule plotlyviacdnmodule forroot version 2 35 3 pin a plotly version for reproducible builds bundlename basic optional null full basic cartesian geo gl3d gl2d mapbox finance or strict export class appmodule by default plotly s cdn is used to fetch the requested bundle js however you can either choose plotly cloudflare or custom for cloudflare plotlyviacdnmodule forroot version 1 55 2 cdnprovider cloudflare cloudflare doesn t support latest it is mandatory to supply version bundlename basic optional can be null for full or basic cartesian geo gl3d gl2d mapbox or finance for custom cdn url plotlyviacdnmodule forroot cdnprovider custom cloudflare doesn t support latest it is mandatory to supply version customurl https custom cdn url can be used directly for any self hosted plotly bundle plotly via window module plotly js can be added as a global script on angular json to avoid it being bundled into the final project s code to make this happen you must first add plotly js path into angular json file as shown below angular json projects project name this is your project s name architect build options scripts node_modules plotly js dist min plotly min js add this this will include plotly js into the vendor js file generated by angular cli build process and plotly js library will be loaded before angular and your project s code the window plotly will be available thus you must use plotlyviawindowmodule module to force angular plotly js to use window plotly object import ngmodule from angular core import commonmodule from angular common import plotlyviawindowmodule from angular plotly js ngmodule imports commonmodule plotlyviawindowmodule export class appmodule if you want to use a different precompiled bundle or if you wish to assemble you own customized bundle you can use plotlyviawindowmodule to force the use of window plotly object as shown above development to get started npm install to see the demo app run npm start to run the tests npm run test to verify the exact npm package contents npm run verify package faq please check the faq license 2019 plotly inc mit license about no description website or topics provided resources readme license code of conduct code of conduct activity custom properties stars 242 stars watchers 8 watching forks 81 forks report repository releases sponsor this project packages used by contributors languages footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|