Chart-ECharts

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

Change history for Chart-ECharts

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_option(tooltip => \%params);
}

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

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

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

sub set_data_zoom {
    my ($self, %params) = @_;
    $self->set_option(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.971 second using v1.01-cache-2.11-cpan-49f99fa48dc )