@@ -513,3 +513,85 @@ We can also use the webkit reflect effect to highlight the chart
513513</table >
514514</template >
515515</code-example >
516+
517+ ## Charts with Shadows
518+
519+ Using shadow is always a good practice to create 3D effects.
520+
521+ ``` css
522+ #custom-effect tbody {
523+ padding : 30px ;
524+ border-radius : 10px ;
525+ box-shadow :
526+ inset -5px -5px 10px rgba (0 , 0 , 0 , 0.5 ),
527+ 5px 5px 5px rgba (0 , 0 , 0 , 0.5 );
528+ }
529+ #custom-effect tbody td {
530+ margin-inline : 10px ;
531+ border-radius : 10px ;
532+ box-shadow :
533+ inset -5px -5px 10px rgba (0 , 0 , 0 , 0.5 ),
534+ 5px 5px 5px rgba (0 , 0 , 0 , 0.5 );
535+ }
536+ ```
537+
538+ <code-example code-example-id =" effect-example-7 " >
539+ <template v-slot:css-code >
540+ #effect-example-7 {
541+ height: 260px;
542+ max-width: 360px;
543+ margin: 0 auto;
544+ }
545+ #effect-example-7 tbody {
546+ padding: 30px;
547+ border-radius: 10px;
548+ box-shadow:
549+ inset -5px -5px 10px rgba(0, 0, 0, 0.5),
550+ 5px 5px 5px rgba(0, 0, 0, 0.5);
551+ }
552+ #effect-example-7 tbody td {
553+ margin-inline: 10px;
554+ border-radius: 10px;
555+ box-shadow:
556+ inset -5px -5px 10px rgba(0, 0, 0, 0.5),
557+ 5px 5px 5px rgba(0, 0, 0, 0.5);
558+ }
559+ </template >
560+ <template v-slot:html-code >
561+ <table class =" charts-css column hide-data " id =" effect-example-7 " >
562+
563+ <caption > 3D Effect Example #7 </caption >
564+
565+ <thead >
566+ <tr>
567+ <th scope="col"> Year </th>
568+ <th scope="col"> Progress </th>
569+ </tr>
570+ </thead >
571+
572+ <tbody >
573+ <tr>
574+ <th scope="row"> 2016 </th>
575+ <td style="--size: 0.2"> <span class="data"> 20 </span> </td>
576+ </tr>
577+ <tr>
578+ <th scope="row"> 2017 </th>
579+ <td style="--size: 0.4"> <span class="data"> 40 </span> </td>
580+ </tr>
581+ <tr>
582+ <th scope="row"> 2018 </th>
583+ <td style="--size: 0.6"> <span class="data"> 60 </span> </td>
584+ </tr>
585+ <tr>
586+ <th scope="row"> 2019 </th>
587+ <td style="--size: 0.8"> <span class="data"> 80 </span> </td>
588+ </tr>
589+ <tr>
590+ <th scope="row"> 2020 </th>
591+ <td style="--size: 1.0"> <span class="data"> 100 </span> </td>
592+ </tr>
593+ </tbody >
594+
595+ </table >
596+ </template >
597+ </code-example >
0 commit comments