i have these our graphs developed using the kendoui for vue, and these 4 buttons with 4 extra features. I'm working now in the Zoom Out feature. It works opening a modal showing the graph choosed. There's only 1 "Zoom Out" button and 1 Modal createad, and i need to give the inormation on which graph will be displayed. How on earth i can do this? Each graph is one separated component, and everyone of them has the :kpiName prop with their value.
I created a function on the zoom out button click that turns the data "isModalVisible" true, showing the modal, but don't know how to insert the chart inside. The beggining of the first component is below:
<chart-more-option :kpiName="'TotalActionCautionTML'""/>
And the modal code:
<template>
<div class="modal-backdrop">
<div class="modal">
<header class="modal-header">
<slot name="header">
</slot>
</header>
<section class="modal-body">
<slot name="body">
<div id="asset-kpi" class="kpi-chart">
THE CHART WILL BE HERE
</div>
</slot>
</section>
<footer class="modal-footer">
<slot name="footer">
</slot>
<button
type="button"
class="btn-green"
@click="close"
>
Close Modal
</button>
</footer>
</div>
</div>
</template>