Meta tags:
description= Hello, I m having a bit of trouble with my charts in a dashboard. I ve implemented theme switching in my application using system variables and Angular Material. I m able to change my chart s look and feel according to the colors of my t...;
Headings (most frequently used words):
navigation, metadata, footer, psanetra, commented, on, dec, 11, 2024, height, of, plot, is, until, resize, after, changing, layout, input, 276, injectable, component, template, menu, repository, description, activity, issue, actions, assignees, labels, type, projects, milestone, relationships, development,
Text of the page (most frequently used words):
github (14), the (14), plotly (11), and (11), height (9), #layout (8), plot (8), theme (8), issue (7), for (7), mat (7), #actions (6), 255 (6), security (5), copilot (5), sign (5), 2024 (5), const (5), angular (5), code (5), you (4), this (4), projects (4), data (4), dec (4), psanetra (4), after (4), input (4), card (4), inject (4), darkmode (4), new (4), until (4), resize (4), window (4), your (4), support (4), navigation (3), open (3), labels (3), have (3), config (3), style (3), more (3), 100 (3), switching (3), mapdata (3), content (3), true (3), computed (3), from (3), import (3), with (3), copy (3), link (3), 276 (3), changing (3), quality (3), another (3), tab (3), refresh (3), session (3), reload (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), all (3), build (3), can (2), community (2), status (2), footer (2), app (2), pull (2), requests (2), development (2), milestone (2), type (2), one (2), metadata (2), set (2), commented (2), when (2), container (2), responsive (2), charts (2), their (2), see (2), chart (2), themes (2), component (2), spinner (2), margin (2), textcolor (2), color (2), rgba (2), readonly (2), documentelement (2), return (2), effect (2), signal (2), document (2), wa_window (2), injectiontoken (2), common (2), insights (2), repository (2), signed (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), learn (2), business (2), fixes (2), products (2), secret (2), perform, that, action, time, not, share, personal, information, manage, cookies, contact, docs, privacy, terms, 2026, inc, branches, none, yet, relationships, assigned, assignees, comment, already, account, join, conversation, free, 600px, workaround, now, was, static, value, looks, like, some, race, condition, experiencing, similar, update, sometimes, instead, desired, default, scaled, 0px, automatically, browser, 450px, div, svg, activity, how, while, still, containers, actual, which, updates, before, async, else, auto, mapboxaccesstoken, mapboxtoken, displaylogo, false, modebarbuttonstoremove, toimage, maplayout, template, font, plot_bgcolor, paper_bgcolor, people, age, title, pad, autosize, stack, barmode, partial, agegenderchartlayout, text, getpropertyvalue, getcomputedstyle, light, toggle, classlist, setdarkmode, factory, export, web, apis, core, injectable, having, bit, trouble, dashboard, implemented, application, using, system, variables, material, able, change, look, feel, according, colors, however, will, collapse, switch, because, element, has, hello, body, oct, opened, jakehockey10, description, items, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, what, next, partners, about, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, add, ons, trust, why, evaluate, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, 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, menu, skip,
Text of the page (random words):
height of plot is 0 until resize after changing layout input issue 276 plotly angular plotly js 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 height of plot is 0 until resize after changing layout input 276 new issue copy link new issue copy link open open height of plot is 0 until resize after changing layout input 276 copy link description jakehockey10 opened on oct 24 2024 issue body actions hello i m having a bit of trouble with my charts in a dashboard i ve implemented theme switching in my application using system variables and angular material i m able to change my chart s look and feel according to the colors of my theme however the container will collapse when i switch to a new theme because the plotly plot element has a height of 0 until i resize the window injectable import document from angular common import computed effect inject injectiontoken signal from angular core import wa_window from ng web apis common export const theme new injectiontoken theme factory const w inject wa_window const d inject document const darkmode signal true const setdarkmode effect d documentelement classlist toggle light darkmode return darkmode textcolor computed darkmode return getcomputedstyle d documentelement getpropertyvalue mat app text color component readonly theme inject theme readonly agegenderchartlayout computed partial plotly layout barmode stack autosize true margin l 60 r 50 b 100 t 50 pad 4 title people by age paper_bgcolor rgba 255 255 255 0 plot_bgcolor rgba 255 255 255 0 font color this theme textcolor template mat card mat card content if mapdata async as mapdata plotly plot data mapdata layout maplayout config responsive true mapboxaccesstoken mapboxtoken displaylogo false modebarbuttonstoremove toimage else mat spinner style margin auto mat spinner mat card content mat card before switching themes after switching themes which updates the layout input of the plotly plot component how can i have responsive charts while still have their containers see their actual height is this a plotly chart issue activity psanetra commented on dec 11 2024 psanetra on dec 11 2024 more actions i am experiencing a similar issue when i update the plot data sometimes the height of the svg container div is set to 100 instead of the desired 450px the plotly default height 100 is scaled to 0px automatically by the browser it looks like some race condition psanetra commented on dec 11 2024 psanetra on dec 11 2024 more actions my workaround for now was to set style height to a static value e g plotly plot style height 600px data data layout layout config config sign up for free to join this conversation on github already have an account sign in to comment metadata metadata assignees no one assigned labels no labels no labels type no type projects no projects milestone no milestone relationships none yet development no branches or pull requests issue actions open in github copilot app 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
|