Is there a detailed document on how to create a custom ngx diagram? This is what I found, but could not start working with: https://medium.com/@amcdnl/charts-with-svgs-in-angular2-1d08a0e635ea
I want to create a custom timeline chart, something like this:
https://drive.google.com/open?id=0B2wUYluH2H4vZXdNUmxjU3JIWmc https://drive.google.com/open?id=0B2wUYluH2H4vSnZkT1ZUdWd3N2M
I tried to recreate the second one, this is my current move: https://drive.google.com/open?id=0B2wUYluH2H4veGlNak13clRFeEk
I used only svg rectangles for this diagram, but I want to do this with d3 at angular4. I thought this could be done with ngx-chart and d3, but I did not find any useful documentation.
Source svg:
<svg class="chart" width="1440" height="100"> <svg:g transform="translate(1, 5)"> <g *ngFor="let bar of bars; let i = index"> <rect [ngClass]="getFillClass(bar.eventType)" [attr.x]="calcX(i)" [attr.y]="calcY(bar.eventType)" [attr.width]="bar.duration" [attr.height]="getHeight(bar.eventType)" rx="0" ry="0"> </rect> </g> <svg:line class="xAxis" [attr.x1]="0" [attr.y1]="maxHeight - 5" [attr.x2]="1440" [attr.y2]="maxHeight - 5" /> </svg:g> </svg>
No one has answered this question yet.
See related questions:
Source: https://habr.com/ru/post/1271605/More articles:Dependency problem when running C # sample project based on cloud pubsub - c #Added non-passive event listener for touchstart event with scroll lock - javascriptCould not start Google Cloud PubSub in C #, DLL problems - c #JavaFX TreeTableView has poor node performance - javaDocker Run command freezes without any error - dockernpm ERR! Unexpected end of JSON input - node.jshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1271607/vuex-passing-multiple-parameters-to-action&usg=ALkJrhjxhHe3ZQQGPm-ovV1OUVZrxMUqPAHow to import a saved Tensorflow model train using tf.estimator and predict input - tensorflowDoes Spring support MVC support for JSR-380 (Bean validation 2)? - spring-mvcDokka - skip javadoc generator for default packages for Android - androidAll Articles