Skip to content

Commit dbe5157

Browse files
committed
docs: chart page update
1 parent db4a6dd commit dbe5157

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/routes/docs/plugins/charts.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Use this example to show a basic area chart.
9191
};
9292
</script>
9393
94-
<Card>
94+
<Card class="p-4 md:p-6">
9595
<div class="flex justify-between">
9696
<div>
9797
<h5 class="pb-2 text-3xl leading-none font-bold text-gray-900 dark:text-white">32.4k</h5>
@@ -106,7 +106,7 @@ Use this example to show a basic area chart.
106106
<div class="grid grid-cols-1 items-center justify-between border-t border-gray-200 dark:border-gray-700">
107107
<div class="flex items-center justify-between pt-5">
108108
<Button class="inline-flex items-center bg-transparent py-0 text-center text-sm font-medium text-gray-500 hover:bg-transparent hover:text-gray-900 focus:ring-transparent dark:bg-transparent dark:text-gray-400 dark:hover:bg-transparent dark:hover:text-white dark:focus:ring-transparent">Last 7 days<ChevronDownOutline class="m-2.5 ms-1.5 w-2.5" /></Button>
109-
<Dropdown class="w-40" offset="-6">
109+
<Dropdown simple class="w-40" offset="-6">
110110
<DropdownItem>Yesterday</DropdownItem>
111111
<DropdownItem>Today</DropdownItem>
112112
<DropdownItem>Last 7 days</DropdownItem>
@@ -203,7 +203,7 @@ To create a double line chart check the example below.
203203
};
204204
</script>
205205
206-
<Card>
206+
<Card class="p-4 md:p-6">
207207
<div class="mb-5 flex justify-between">
208208
<div class="grid grid-cols-2 gap-4">
209209
<div>
@@ -244,7 +244,7 @@ To create a double line chart check the example below.
244244
</div>
245245
<div>
246246
<Button color="light" class="px-3 py-2">Last week<ChevronDownOutline class="ms-1.5 h-2.5 w-2.5" /></Button>
247-
<Dropdown class="w-40">
247+
<Dropdown simple class="w-40">
248248
<DropdownItem>Yesterday</DropdownItem>
249249
<DropdownItem>Today</DropdownItem>
250250
<DropdownItem>Last 7 days</DropdownItem>
@@ -380,7 +380,7 @@ You can represent multiple data entries using columns by setting the type: "bar"
380380
};
381381
</script>
382382
383-
<Card>
383+
<Card class="p-4 md:p-6">
384384
<div class="mb-4 flex justify-between border-b border-gray-200 pb-4 dark:border-gray-700">
385385
<div class="flex items-center">
386386
<div class="me-3 flex h-12 w-12 items-center justify-center rounded-lg bg-gray-100 dark:bg-gray-700">
@@ -412,7 +412,7 @@ You can represent multiple data entries using columns by setting the type: "bar"
412412
<div class="grid grid-cols-1 items-center justify-between border-t border-gray-200 dark:border-gray-700">
413413
<div class="flex items-center justify-between pt-5">
414414
<Button class="inline-flex items-center bg-transparent py-0 text-center text-sm font-medium text-gray-500 hover:bg-transparent hover:text-gray-900 focus:ring-transparent dark:bg-transparent dark:text-gray-400 dark:hover:bg-transparent dark:hover:text-white dark:focus:ring-transparent">Last 7 days<ChevronDownOutline class="m-2.5 ms-1.5 w-2.5" /></Button>
415-
<Dropdown class="w-40" offset="-6">
415+
<Dropdown simple class="w-40" offset="-6">
416416
<DropdownItem>Yesterday</DropdownItem>
417417
<DropdownItem>Today</DropdownItem>
418418
<DropdownItem>Last 7 days</DropdownItem>
@@ -529,7 +529,7 @@ Create a horizontal bar chart with as many data series as you like by setting th
529529
};
530530
</script>
531531
532-
<Card>
532+
<Card class="p-4 md:p-6">
533533
<div class="flex justify-between border-b border-gray-200 pb-3 dark:border-gray-700">
534534
<dl>
535535
<dt class="pb-1 text-base font-normal text-gray-500 dark:text-gray-400">Profit</dt>
@@ -558,7 +558,7 @@ Create a horizontal bar chart with as many data series as you like by setting th
558558
<div class="grid grid-cols-1 items-center justify-between border-t border-gray-200 dark:border-gray-700">
559559
<div class="flex items-center justify-between pt-5">
560560
<Button class="inline-flex items-center bg-transparent py-0 text-center text-sm font-medium text-gray-500 hover:bg-transparent hover:text-gray-900 focus:ring-transparent dark:bg-transparent dark:text-gray-400 dark:hover:bg-transparent dark:hover:text-white dark:focus:ring-transparent">Last 7 days<ChevronDownOutline class="m-2.5 ms-1.5 w-2.5" /></Button>
561-
<Dropdown class="w-40" offset="-6">
561+
<Dropdown simple class="w-40" offset="-6">
562562
<DropdownItem>Yesterday</DropdownItem>
563563
<DropdownItem>Today</DropdownItem>
564564
<DropdownItem>Last 7 days</DropdownItem>
@@ -640,7 +640,7 @@ Create a pie chart with multiple data series by setting the type: "pie" chart ty
640640
};
641641
</script>
642642
643-
<Card>
643+
<Card class="p-4 md:p-6">
644644
<div class="flex w-full items-start justify-between">
645645
<div class="flex-col items-center">
646646
<div class="mb-1 flex items-center">
@@ -659,7 +659,7 @@ Create a pie chart with multiple data series by setting the type: "pie" chart ty
659659
</div>
660660
<div class="flex items-center justify-end">
661661
<DotsHorizontalOutline id="dots-menu" class="dots-menu dark:text-white" />
662-
<Dropdown triggeredBy="#dots-menu" class="w-44" offset="-6">
662+
<Dropdown simple triggeredBy="#dots-menu" class="w-44" offset="-6">
663663
<DropdownItem><PenSolid class="me-2 inline h-3 w-3" /> Edit widget</DropdownItem>
664664
<DropdownItem><DownloadSolid class="me-2 inline h-3 w-3" />Dropdown data</DropdownItem>
665665
<DropdownItem><ShareNodesSolid class="me-2 inline h-3 w-3" />Add to repository</DropdownItem>
@@ -673,7 +673,7 @@ Create a pie chart with multiple data series by setting the type: "pie" chart ty
673673
<div class="grid grid-cols-1 items-center justify-between border-t border-gray-200 dark:border-gray-700">
674674
<div class="flex items-center justify-between pt-5">
675675
<Button class="inline-flex items-center bg-transparent py-0 text-center text-sm font-medium text-gray-500 hover:bg-transparent hover:text-gray-900 focus:ring-transparent dark:bg-transparent dark:text-gray-400 dark:hover:bg-transparent dark:hover:text-white dark:focus:ring-transparent">Last 7 days<ChevronDownOutline class="m-2.5 ms-1.5 w-2.5" /></Button>
676-
<Dropdown class="w-40" offset="-6">
676+
<Dropdown simple class="w-40" offset="-6">
677677
<DropdownItem>Yesterday</DropdownItem>
678678
<DropdownItem>Today</DropdownItem>
679679
<DropdownItem>Last 7 days</DropdownItem>
@@ -781,7 +781,7 @@ Set the chart type: "donut" to create a donut chart and copy the options from th
781781
};
782782
</script>
783783
784-
<Card>
784+
<Card class="p-4 md:p-6">
785785
<div class="flex w-full items-start justify-between">
786786
<div class="flex-col items-center">
787787
<div class="mb-1 flex items-center">
@@ -809,7 +809,7 @@ Set the chart type: "donut" to create a donut chart and copy the options from th
809809
<div class="grid grid-cols-1 items-center justify-between border-t border-gray-200 dark:border-gray-700">
810810
<div class="flex items-center justify-between pt-5">
811811
<Button class="inline-flex items-center bg-transparent py-0 text-center text-sm font-medium text-gray-500 hover:bg-transparent hover:text-gray-900 focus:ring-transparent dark:bg-transparent dark:text-gray-400 dark:hover:bg-transparent dark:hover:text-white dark:focus:ring-transparent">Last 7 days<ChevronDownOutline class="m-2.5 ms-1.5 w-2.5" /></Button>
812-
<Dropdown class="w-40" offset="-6">
812+
<Dropdown simple class="w-40" offset="-6">
813813
<DropdownItem>Yesterday</DropdownItem>
814814
<DropdownItem>Today</DropdownItem>
815815
<DropdownItem>Last 7 days</DropdownItem>
@@ -894,7 +894,7 @@ To create a radial chart with multiple data entries you need to set the type: "r
894894
};
895895
</script>
896896
897-
<Card>
897+
<Card class="p-4 md:p-6">
898898
<div class="flex w-full items-start justify-between">
899899
<div class="flex-col items-center">
900900
<div class="mb-1 flex items-center">
@@ -961,7 +961,7 @@ To create a radial chart with multiple data entries you need to set the type: "r
961961
<div class="grid grid-cols-1 items-center justify-between border-t border-gray-200 dark:border-gray-700">
962962
<div class="flex items-center justify-between pt-5">
963963
<Button class="inline-flex items-center bg-transparent py-0 text-center text-sm font-medium text-gray-500 hover:bg-transparent hover:text-gray-900 focus:ring-transparent dark:bg-transparent dark:text-gray-400 dark:hover:bg-transparent dark:hover:text-white dark:focus:ring-transparent">Last 7 days<ChevronDownOutline class="m-2.5 ms-1.5 w-2.5" /></Button>
964-
<Dropdown class="w-40" offset="-6">
964+
<Dropdown simple class="w-40" offset="-6">
965965
<DropdownItem>Yesterday</DropdownItem>
966966
<DropdownItem>Today</DropdownItem>
967967
<DropdownItem>Last 7 days</DropdownItem>

0 commit comments

Comments
 (0)