Explorar el Código

🚧 improve all-in-graph mock

jmacura hace 3 años
padre
commit
76cb27a9e3
Se han modificado 1 ficheros con 10 adiciones y 9 borrados
  1. 10 9
      src/app/graphs/all-in-one-graph/all-in-one-graph.component.ts

+ 10 - 9
src/app/graphs/all-in-one-graph/all-in-one-graph.component.ts

@@ -10,26 +10,27 @@ import {SdmDihService} from '../sdm-dih.service';
 export class AllInOneGraphComponent {
   dataLoaded = false;
   trace1 = {
+    x: [2014, 2014, 2014, 2015, 2015, 2030],
     y: [
-      5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
-      5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
+      'Monaghan',
+      'Hame',
+      'Central Greece',
+      'Central Bohemia',
+      'Segobriga',
+      'Galilee',
     ],
 
     mode: 'markers',
 
     marker: {
-      size: 40,
+      size: 10,
 
-      color: [
-        0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
-        20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
-        38, 39,
-      ],
+      color: [0, 1, 2, 3, 4, 5],
     },
   };
   data = [this.trace1];
   layout = {
-    height: 250,
+    height: 400,
     width: '100%',
   };