Chart-ECharts

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

1.03 2025-10-31
    - Added "dataset" and "add_dataset" methods
    - Use "load" JS event instead of "IIFE"
    - Add "init_function" method

1.02 2024-12-13
    - Simplified "render_script" JS output
    - Removed "option_prefix" and "chart_prefix" configs
    - Added "window.ChartECharts" object with all charts ("window.ChartECharts.charts")
    - Improved "set_options" method
    - Added helpers "set_title", "set_toolbox", "set_tooltip", "set_legend", "set_timeline"
      "set_data_zoom" and "add_data_zoom"
    - DEPRECATED "set_option"
    - Updated documentation

1.01 2024-11-27
    - Added "add_xAxis" and "add_yAxis" methods
    - Improved "axies" property

1.00 2024-11-21
    - First release of Chart::ECharts

lib/Chart/ECharts.pm  view on Meta::CPAN

sub set_tooltip {
    my ($self, %params) = @_;
    $self->set_options(tooltip => \%params);
}

sub set_toolbox {
    my ($self, %params) = @_;
    $self->set_options(toolbox => \%params);
}

sub set_legend {
    my ($self, %params) = @_;
    $self->set_options(legend => \%params);
}

sub set_timeline {
    my ($self, %params) = @_;
    $self->set_options(timeline => \%params);
}

sub set_data_zoom {
    my ($self, %params) = @_;
    $self->set_options(dataZoom => \%params);

lib/Chart/ECharts.pm  view on Meta::CPAN

Set the chart title

=item $chart->set_toolbox(%params)

Set the chart toolbox

=item $chart->set_tooltip(%params)

Set the chart tooltip

=item $chart->set_legend(%params)

Set the chart legend

=item $chart->set_timeline(%params)

Set the chart timeline

=item $chart->set_data_zoom(%params)

Set the chart data zoom

=item $chart->add_data_zoom(%params)



( run in 0.209 second using v1.01-cache-2.11-cpan-1d5ca39e368 )