|
731 | 731 | </c-chart>
|
732 | 732 | </code>
|
733 | 733 | </c-sample-app-item>
|
| 734 | + |
| 735 | + <!-- Multiple axes --> |
| 736 | + <c-sample-app-item> |
| 737 | + <c-chart slot="chartExample" type="line" responsive="true"> |
| 738 | + <c-dataset labels='["A", "B", "C", "D", "E"]'> |
| 739 | + <c-data |
| 740 | + yaxisid="left" |
| 741 | + label="Left dataset" |
| 742 | + backgroundcolor="rgba(82, 183, 216, 1)" |
| 743 | + bordercolor="rgba(82, 183, 216, 0.2)" |
| 744 | + detail="[10, 9, 4, 3, 6]" |
| 745 | + fill="false" |
| 746 | + ></c-data> |
| 747 | + <c-data |
| 748 | + yaxisid="right" |
| 749 | + label="Right dataset" |
| 750 | + detail="[3, 2, 1, 5, 0]" |
| 751 | + backgroundcolor="rgba(84, 167, 123, 1)" |
| 752 | + bordercolor="rgba(84, 167, 123, 0.2)" |
| 753 | + fill="false" |
| 754 | + ></c-data> |
| 755 | + </c-dataset> |
| 756 | + <c-title text="Multiple axes with different scales"></c-title> |
| 757 | + <c-cartesian-axis |
| 758 | + axis="x" |
| 759 | + position="bottom" |
| 760 | + type="category" |
| 761 | + ></c-cartesian-axis> |
| 762 | + <c-cartesian-linear-axis |
| 763 | + axisid="left" |
| 764 | + axis="y" |
| 765 | + position="left" |
| 766 | + ticks-stepsize="3" |
| 767 | + title-labelstring="Left axis" |
| 768 | + title-display="true" |
| 769 | + ></c-cartesian-linear-axis> |
| 770 | + <c-cartesian-linear-axis |
| 771 | + axisid="right" |
| 772 | + axis="y" |
| 773 | + position="right" |
| 774 | + ticks-stepsize="1" |
| 775 | + title-labelstring="Right axis" |
| 776 | + title-display="true" |
| 777 | + ></c-cartesian-linear-axis> |
| 778 | + </c-chart> |
| 779 | + <code slot="chartCode" lang="html"> |
| 780 | + <c-chart type="line" responsive="true"><br /> |
| 781 | +  <c-dataset labels='["A", "B", |
| 782 | + "C", "D", "E"]'><br /> |
| 783 | +   <c-data yaxisid="left" label="Left |
| 784 | + dataset" detail="[10, 9, 4, 3, 6]" |
| 785 | + backgroundcolor="rgba(82, 183, 216, 1)"<br /> |
| 786 | +    bordercolor="rgba(82, 183, 216, 0.2)" |
| 787 | + fill="false"></c-data><br /> |
| 788 | +   <c-data yaxisid="right" label="Right |
| 789 | + dataset" detail="[3, 2, 1, 5, 0]" |
| 790 | + backgroundcolor="rgba(84, 167, 123, 1)"<br /> |
| 791 | +    bordercolor="rgba(84, 167, 123, 0.2)" |
| 792 | + fill="false"></c-data><br /> |
| 793 | +  </c-dataset><br /> |
| 794 | +  <c-title text="Multiple axes with different |
| 795 | + scales"></c-title><br /> |
| 796 | +  <c-cartesian-axis axis="x" |
| 797 | + position="bottom" |
| 798 | + type="category"></c-cartesian-axis><br /> |
| 799 | +  <c-cartesian-linear-axis axisid="left" |
| 800 | + axis="y" position="left" |
| 801 | + ticks-stepsize="3" title-labelstring="Left axis"<br /> |
| 802 | +   title-display="true"></c-cartesian-linear-axis><br /> |
| 803 | +  <c-cartesian-linear-axis axisid="right" |
| 804 | + axis="y" position="right" |
| 805 | + ticks-stepsize="1" title-labelstring="Right axis"<br /> |
| 806 | +   title-display="true"></c-cartesian-linear-axis><br /> |
| 807 | + </c-chart> |
| 808 | + </code> |
| 809 | + </c-sample-app-item> |
734 | 810 | </div>
|
735 | 811 | </template>
|
0 commit comments