Plotly table is not working
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- angular, typescript
- Área
- frontend
Línea de trabajo
Comienza reproduciendo la tabla vacía de app.module.ts, app.component.ts y app.component.html utilizando la configuración mostrada de PlotlyViaCDNModule y los datos de la tabla. Compárala con los ejemplos funcionales de gráficos de líneas o de dispersión; el issue estará terminado cuando la tabla proporcionada se renderice correctamente en el componente de Angular.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem Overview
- plotly table is showing a blank chart in Angular solution
- Note: I have tried the same thing a month back with plotly version 2.2.1 and it was working fine.
Steps Followed
-
Installed plotly in an Angular solution with below commands
npm install plotly.js-dist --save
npm install @types/plotly.js --save
npm install @types/d3 --save -
Rename folder "plotly.js" to "plotly.js-dist" in "node_modules/@types".
Line/Scatter plots works fine with this approach. However, table is showing an empty graph.
Also, tried with PlotlyViaCDNModule - still the issue is same
Below is how the angular component & module files
app.module.ts
import { PlotlyViaCDNModule } from 'angular-plotly.js';
import { CommonModule } from '@angular/common';
PlotlyViaCDNModule.setPlotlyVersion('1.55.2'); // can be latest or any version number (i.e.: '1.40.0')
PlotlyViaCDNModule.setPlotlyBundle('basic');
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
PlotlyViaCDNModule,
CommonModule
],
app.component.ts
export class AppComponent {
public values = [
['Salaries', 'Office', 'Merchandise', 'Legal', 'TOTAL'],
[1200000, 20000, 80000, 2000, 12120000],
[1300000, 20000, 70000, 2000, 130902000],
[1300000, 20000, 120000, 2000, 131222000],
[1400000, 20000, 90000, 2000, 14102000]]
public data = [{
type: 'table',
header: {
values: [["EXPENSES"], ["Q1"],
["Q2"], ["Q3"], ["Q4"]],
align: "center",
line: {width: 1, color: 'black'},
fill: {color: "grey"},
font: {family: "Arial", size: 12, color: "white"}
},
cells: {
values: this.values,
align: "center",
line: {color: "black", width: 1},
font: {family: "Arial", size: 11, color: ["black"]}
}
}]
constructor() {
}
}
app.component.html
<plotly-plot [data]="data">
- Lenguaje dominante
- TypeScript
- Estrellas
- 242
- Forks
- 81
- Merge medio
- 23 h 52 min
- PR fusionados (30 d)
- 5
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de plotly/angular-plotly.js
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
plotly/angular-plotly.js#373 ·
Los mantenedores suelen responder en 1 día
-
Feature request: please add migration guidePosiblemente ocupada @andrefarzat la tomó hace 21 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
plotly/angular-plotly.js#285 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
event handlers are not typedPosiblemente ocupada @andrefarzat la tomó hace 21 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
plotly/angular-plotly.js#283 ·
Los mantenedores suelen responder en 1 día
-
Angular 20 standalone applicationPosiblemente ocupada @andrefarzat la tomó hace 21 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
plotly/angular-plotly.js#281 · 8 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
Angular 19 specs won't runAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
plotly/angular-plotly.js#278 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de plotly/angular-plotly.js
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
riverqueue/river#1576 ·
Los mantenedores suelen responder en 1 día
-
[bug] A prompt queued during a run is assessed without its textPosiblemente ocupada @jwiegley la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DevMortimer/pi-warden#211 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
mattermost/compass-design#191 ·
Los mantenedores suelen responder en 1 día
-
Add unit tests for the organization admin role checkPosiblemente ocupada @SaffuSafwan la tomó hoy. Abiertoarea/core good first issue help wanted
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
elmohq/elmo#1095 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
HorusGoul/trizum#559 · 1 comentario ·
Los mantenedores suelen responder en 1 día