Second Opinion
Folosind serviciul second opinion ne puteți trimite RMN-uri, CT -uri, angiografii, fișiere .pdf, documente medicale. Astfel vă vom putea da o opinie neurochirurgicală, fără ca aceasta să poată înlocui un consult de specialitate. Răspunsurile vor fi date prin e-mail în cel mai scurt timp posibil (de obicei în mai putin de 24 de ore, dar nu mai mult de 48 de ore). Second opinion – Neurohope este un serviciu gratuit. www.neurohope.ro |
2 lineCharts intr-o pagina
Last Updated: Feb 21 2017 13:06, Started by
CristiCronik
, Feb 21 2017 13:06
·
0
#1
Posted 21 February 2017 - 13:06
salut, incerc sa modific un template : Gentenella Bootstrap
Vreau 2 lineChart pe o pagina, sa zicem: if ($('#lineChart').length ){ var ctx = document.getElementById("lineChart"); var lineChart = new Chart(ctx, { type: 'line', data: { labels: ["January", "February", "March", "April", "May", "June", "July"], datasets: [{ label: "My First dataset", backgroundColor: "rgba(38, 185, 154, 0.31)", borderColor: "rgba(38, 185, 154, 0.7)", pointBorderColor: "rgba(38, 185, 154, 0.7)", pointBackgroundColor: "rgba(38, 185, 154, 0.7)", pointHoverBackgroundColor: "#fff", pointHoverBorderColor: "rgba(220,220,220,1)", pointBorderWidth: 1, data: [31, 74, 6, 39, 20, 85, 7] }, { label: "My Second dataset", backgroundColor: "rgba(3, 88, 106, 0.3)", borderColor: "rgba(3, 88, 106, 0.70)", pointBorderColor: "rgba(3, 88, 106, 0.70)", pointBackgroundColor: "rgba(3, 88, 106, 0.70)", pointHoverBackgroundColor: "#fff", pointHoverBorderColor: "rgba(151,187,205,1)", pointBorderWidth: 1, data: [82, 23, 66, 9, 99, 4, 2] }] }, }); } Asta e primul care se genereaza. Apoi daca doresc un al doilea : if ($('#secondlineChart').length ){ var ctx2 = document.getElementById("secondlineChart"); var secondlineChart = new Chart(ctx2, { type: 'line', data: { labels: ["January", "February", "March", "April", "May", "June", "July"], datasets: [{ label: "My First dataset", backgroundColor: "rgba(38, 185, 154, 0.31)", borderColor: "rgba(38, 185, 154, 0.7)", pointBorderColor: "rgba(38, 185, 154, 0.7)", pointBackgroundColor: "rgba(38, 185, 154, 0.7)", pointHoverBackgroundColor: "#fff", pointHoverBorderColor: "rgba(220,220,220,1)", pointBorderWidth: 1, data: [31, 74, 6, 39, 20, 85, 7] }, { label: "My Second dataset", backgroundColor: "rgba(3, 88, 106, 0.3)", borderColor: "rgba(3, 88, 106, 0.70)", pointBorderColor: "rgba(3, 88, 106, 0.70)", pointBackgroundColor: "rgba(3, 88, 106, 0.70)", pointHoverBackgroundColor: "#fff", pointHoverBorderColor: "rgba(151,187,205,1)", pointBorderWidth: 1, data: [82, 23, 66, 9, 99, 4, 2] }] }, }); } nu mai merge. Am incercat sa schimb si variabila "ctx" dar fara succes. Mentionez ca in aceeasi pagina sunt si BarChart si alte tabele generate in acelasi mod. cod html <div class="row"> <div class="x_content"> <canvas id="lineChart"></canvas> </div> </div> <div class="row"> <div class="x_content"> <canvas id="secondlineChart"></canvas> </div> </div> |
Anunturi
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users