informatica:programacion:javascript:chartjs
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
| informatica:programacion:javascript:chartjs [2023/11/09 11:14] – tempwin | informatica:programacion:javascript:chartjs [2023/11/09 11:25] (actual) – [Título ejes de coordenadas] tempwin | ||
|---|---|---|---|
| Línea 37: | Línea 37: | ||
| </ | </ | ||
| + | </ | ||
| + | |||
| + | ===== Configuración ===== | ||
| + | |||
| + | ==== Título gráfica ==== | ||
| + | |||
| + | La opción '' | ||
| + | |||
| + | <code javascript> | ||
| + | const chart = new Chart(ctx, { | ||
| + | type: ' | ||
| + | data: data, | ||
| + | options: { | ||
| + | plugins: { | ||
| + | title: { | ||
| + | display: true, | ||
| + | text: ' | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | }); | ||
| + | </ | ||
| + | |||
| + | ==== Título ejes de coordenadas ==== | ||
| + | |||
| + | <code javascript> | ||
| + | new Chart(ctx, { | ||
| + | (...) | ||
| + | options: { | ||
| + | scales: { | ||
| + | y: { | ||
| + | title: { | ||
| + | display: true, | ||
| + | text: " | ||
| + | } | ||
| + | }, | ||
| + | x: { | ||
| + | title: { | ||
| + | display: true, | ||
| + | text: " | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | }); | ||
| </ | </ | ||
informatica/programacion/javascript/chartjs.1699524852.txt.gz · Última modificación: por tempwin
