The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Saving the Chart Configurations with the Process or Standakone

gbortz27gbortz27 Member Posts: 22 Contributor II
edited September 2019 in Help
How do I save the charts ( or their configurations)  I build in the chart wizard ( ie Advanced Charts ) , or that I build in the Charts section. When I saved the process after building a complex chart it did not save the chart with the process. Its rather time consuming to keep rebuilding the same chart for tables with the identical meta data , but different values for different runs.

Can this be achieved? 

What about through Templates ?

Regards and Thanks
Graham

Answers

  • RalfKlinkenbergRalfKlinkenberg Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, RMResearcher, Member, Unconfirmed, University Professor Posts: 68 RM Founder
    You can use the RapidMiner Reporting Extension for this.
  • gbortz27gbortz27 Member Posts: 22 Contributor II
    Hi thanks for the advice

    I have tried to use the reporting facility but how do I get the chart into this

    Do I first create the chart .

    Then how do the report generator and report blocks work together  and how do I get the chart into the report.

    I tried to retreive a csv file and then place it at the input to the Report block and then connect to the reprt generator but it keeps saying there is no document . I reversed it and get the same result.

    Is there any tutorial on this on the Web

    Thanks  ??? :'(
  • RalfKlinkenbergRalfKlinkenberg Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, RMResearcher, Member, Unconfirmed, University Professor Posts: 68 RM Founder
    First you need to define the report with the "Generate Report" operator, e.g. setting the report type to "HTML" and defining the target directory, where the charts amd the HTML report will be stored. You also give the report a title, e.g. "My Report".

    Then you can use the "Report" operator to create charts. One operator instance per chart (or table or I/O object) to be included in the report. Make sure to use the same report title, e.g. "My Report", i.e. to refer to the same report. You can also select the image file format (e.g. PNG, JPG, etc.).

    After running your process, you will find the HTML report and all charts (as image files in e.g. PNG, JPG, or any other format you selected) in the target directory.
  • JEdwardJEdward RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 578 Unicorn
    Here's a really simple example using Iris & Scatter plots.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="6.4.000">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="6.4.000" expanded="true" name="Process">
        <process expanded="true">
          <operator activated="true" class="retrieve" compatibility="6.4.000" expanded="true" height="60" name="Retrieve Iris" width="90" x="112" y="75">
            <parameter key="repository_entry" value="//Samples/data/Iris"/>
          </operator>
          <operator activated="true" class="reporting:generate_report" compatibility="5.3.000" expanded="true" height="76" name="Generate Report" width="90" x="246" y="75">
            <parameter key="report_name" value="A Report Demo"/>
            <parameter key="format" value="HTML"/>
            <parameter key="html_output_directory" value="/home/john/Desktop/DemoReport"/>
          </operator>
          <operator activated="true" class="reporting:report" compatibility="5.3.000" expanded="true" height="60" name="Report" width="90" x="380" y="75">
            <parameter key="report_name" value="A Report Demo"/>
            <parameter key="report_item_header" value="A1 by A2"/>
            <parameter key="specified" value="true"/>
            <parameter key="reportable_type" value="Data Table"/>
            <parameter key="renderer_name" value="Plot View"/>
            <list key="parameters">
              <parameter key="plotter" value="Scatter"/>
              <parameter key="scatter_axis_x_axis" value="a1"/>
              <parameter key="scatter_axis_x_axis_log_scale" value="false"/>
              <parameter key="scatter_axis_y_axis" value="a2"/>
              <parameter key="scatter_axis_y_axis_log_scale" value="false"/>
              <parameter key="scatter_plot_column" value="label"/>
              <parameter key="scatter_jitter_amount" value="0"/>
              <parameter key="scatter_rotate_labels" value="false"/>
              <parameter key="scatter_multiple_axis_x_axis_log_scale" value="false"/>
              <parameter key="scatter_multiple_jitter_amount" value="0"/>
              <parameter key="scatter_multiple_rotate_labels" value="false"/>
              <parameter key="scatter_matrix_jitter_amount" value="0"/>
              <parameter key="bubble_axis_x_axis_log_scale" value="false"/>
              <parameter key="bubble_rotate_labels" value="false"/>
              <parameter key="parallel_rotate_labels" value="false"/>
              <parameter key="parallel_local_normalization" value="false"/>
              <parameter key="series_rotate_labels" value="false"/>
              <parameter key="series_multiple_rotate_labels" value="false"/>
              <parameter key="som_jitter_amount" value="0"/>
              <parameter key="block_axis_x_axis_log_scale" value="false"/>
              <parameter key="block_axis_y_axis_log_scale" value="false"/>
              <parameter key="block_jitter_amount" value="0"/>
              <parameter key="block_rotate_labels" value="false"/>
              <parameter key="deviation_rotate_labels" value="false"/>
              <parameter key="deviation_local_normalization" value="false"/>
              <parameter key="histogram_absolute_values" value="false"/>
              <parameter key="histogram_rotate_labels" value="false"/>
              <parameter key="histogram_log_scale" value="false"/>
              <parameter key="histogram_number_of_bins" value="40"/>
              <parameter key="histogram_opaqueness" value="100"/>
              <parameter key="histogram_color_absolute_values" value="false"/>
              <parameter key="histogram_color_rotate_labels" value="false"/>
              <parameter key="histogram_color_log_scale" value="false"/>
              <parameter key="histogram_color_number_of_bins" value="40"/>
              <parameter key="histogram_color_opaqueness" value="100"/>
              <parameter key="bars_absolute_values" value="false"/>
              <parameter key="bars_rotate_labels" value="false"/>
              <parameter key="bars_aggregation" value="none"/>
              <parameter key="bars_use_distinct" value="false"/>
              <parameter key="bars_orientation" value="vertical"/>
              <parameter key="bars_stacked_absolute_values" value="false"/>
              <parameter key="bars_stacked_rotate_labels" value="false"/>
              <parameter key="bars_stacked_aggregation" value="none"/>
              <parameter key="bars_stacked_use_distinct" value="false"/>
              <parameter key="bars_stacked_orientation" value="vertical"/>
              <parameter key="pareto_rotate_labels" value="false"/>
              <parameter key="pareto_sorting_direction" value="Descending Keys"/>
              <parameter key="pareto_show_bar_labels" value="true"/>
              <parameter key="pareto_show_cumulative_labels" value="false"/>
              <parameter key="distribution_rotate_labels" value="false"/>
              <parameter key="web_absolute_values" value="false"/>
              <parameter key="web_rotate_labels" value="false"/>
              <parameter key="web_aggregation" value="none"/>
              <parameter key="web_use_distinct" value="false"/>
              <parameter key="pie_absolute_values" value="false"/>
              <parameter key="pie_aggregation" value="none"/>
              <parameter key="pie_use_distinct" value="false"/>
              <parameter key="pie_explosion_amount" value="0"/>
              <parameter key="pie_3d_absolute_values" value="false"/>
              <parameter key="pie_3d_aggregation" value="none"/>
              <parameter key="pie_3d_use_distinct" value="false"/>
              <parameter key="ring_absolute_values" value="false"/>
              <parameter key="ring_aggregation" value="none"/>
              <parameter key="ring_use_distinct" value="false"/>
              <parameter key="ring_explosion_amount" value="0"/>
            </list>
          </operator>
          <operator activated="true" class="reporting:report" compatibility="5.3.000" expanded="true" height="60" name="Report (2)" width="90" x="514" y="75">
            <parameter key="report_name" value="A Report Demo"/>
            <parameter key="report_item_header" value="A1 by A3"/>
            <parameter key="specified" value="true"/>
            <parameter key="reportable_type" value="Data Table"/>
            <parameter key="renderer_name" value="Plot View"/>
            <list key="parameters">
              <parameter key="plotter" value="Scatter"/>
              <parameter key="scatter_axis_x_axis" value="a1"/>
              <parameter key="scatter_axis_x_axis_log_scale" value="false"/>
              <parameter key="scatter_axis_y_axis" value="a3"/>
              <parameter key="scatter_axis_y_axis_log_scale" value="false"/>
              <parameter key="scatter_plot_column" value="label"/>
              <parameter key="scatter_jitter_amount" value="0"/>
              <parameter key="scatter_rotate_labels" value="false"/>
              <parameter key="scatter_multiple_axis_x_axis_log_scale" value="false"/>
              <parameter key="scatter_multiple_jitter_amount" value="0"/>
              <parameter key="scatter_multiple_rotate_labels" value="false"/>
              <parameter key="scatter_matrix_jitter_amount" value="0"/>
              <parameter key="bubble_axis_x_axis_log_scale" value="false"/>
              <parameter key="bubble_rotate_labels" value="false"/>
              <parameter key="parallel_rotate_labels" value="false"/>
              <parameter key="parallel_local_normalization" value="false"/>
              <parameter key="series_rotate_labels" value="false"/>
              <parameter key="series_multiple_rotate_labels" value="false"/>
              <parameter key="som_jitter_amount" value="0"/>
              <parameter key="block_axis_x_axis_log_scale" value="false"/>
              <parameter key="block_axis_y_axis_log_scale" value="false"/>
              <parameter key="block_jitter_amount" value="0"/>
              <parameter key="block_rotate_labels" value="false"/>
              <parameter key="deviation_rotate_labels" value="false"/>
              <parameter key="deviation_local_normalization" value="false"/>
              <parameter key="histogram_absolute_values" value="false"/>
              <parameter key="histogram_rotate_labels" value="false"/>
              <parameter key="histogram_log_scale" value="false"/>
              <parameter key="histogram_number_of_bins" value="40"/>
              <parameter key="histogram_opaqueness" value="100"/>
              <parameter key="histogram_color_absolute_values" value="false"/>
              <parameter key="histogram_color_rotate_labels" value="false"/>
              <parameter key="histogram_color_log_scale" value="false"/>
              <parameter key="histogram_color_number_of_bins" value="40"/>
              <parameter key="histogram_color_opaqueness" value="100"/>
              <parameter key="bars_absolute_values" value="false"/>
              <parameter key="bars_rotate_labels" value="false"/>
              <parameter key="bars_aggregation" value="none"/>
              <parameter key="bars_use_distinct" value="false"/>
              <parameter key="bars_orientation" value="vertical"/>
              <parameter key="bars_stacked_absolute_values" value="false"/>
              <parameter key="bars_stacked_rotate_labels" value="false"/>
              <parameter key="bars_stacked_aggregation" value="none"/>
              <parameter key="bars_stacked_use_distinct" value="false"/>
              <parameter key="bars_stacked_orientation" value="vertical"/>
              <parameter key="pareto_rotate_labels" value="false"/>
              <parameter key="pareto_sorting_direction" value="Descending Keys"/>
              <parameter key="pareto_show_bar_labels" value="true"/>
              <parameter key="pareto_show_cumulative_labels" value="false"/>
              <parameter key="distribution_rotate_labels" value="false"/>
              <parameter key="web_absolute_values" value="false"/>
              <parameter key="web_rotate_labels" value="false"/>
              <parameter key="web_aggregation" value="none"/>
              <parameter key="web_use_distinct" value="false"/>
              <parameter key="pie_absolute_values" value="false"/>
              <parameter key="pie_aggregation" value="none"/>
              <parameter key="pie_use_distinct" value="false"/>
              <parameter key="pie_explosion_amount" value="0"/>
              <parameter key="pie_3d_absolute_values" value="false"/>
              <parameter key="pie_3d_aggregation" value="none"/>
              <parameter key="pie_3d_use_distinct" value="false"/>
              <parameter key="ring_absolute_values" value="false"/>
              <parameter key="ring_aggregation" value="none"/>
              <parameter key="ring_use_distinct" value="false"/>
              <parameter key="ring_explosion_amount" value="0"/>
            </list>
          </operator>
          <operator activated="true" class="reporting:report" compatibility="5.3.000" expanded="true" height="60" name="Report (3)" width="90" x="648" y="75">
            <parameter key="report_name" value="A Report Demo"/>
            <parameter key="report_item_header" value="A1 by A4"/>
            <parameter key="specified" value="true"/>
            <parameter key="reportable_type" value="Data Table"/>
            <parameter key="renderer_name" value="Plot View"/>
            <list key="parameters">
              <parameter key="plotter" value="Scatter"/>
              <parameter key="scatter_axis_x_axis" value="a1"/>
              <parameter key="scatter_axis_x_axis_log_scale" value="false"/>
              <parameter key="scatter_axis_y_axis" value="a4"/>
              <parameter key="scatter_axis_y_axis_log_scale" value="false"/>
              <parameter key="scatter_plot_column" value="label"/>
              <parameter key="scatter_jitter_amount" value="0"/>
              <parameter key="scatter_rotate_labels" value="false"/>
              <parameter key="scatter_multiple_axis_x_axis_log_scale" value="false"/>
              <parameter key="scatter_multiple_jitter_amount" value="0"/>
              <parameter key="scatter_multiple_rotate_labels" value="false"/>
              <parameter key="scatter_matrix_plot_column" value="a1"/>
              <parameter key="scatter_matrix_jitter_amount" value="0"/>
              <parameter key="bubble_axis_x_axis_log_scale" value="false"/>
              <parameter key="bubble_rotate_labels" value="false"/>
              <parameter key="parallel_rotate_labels" value="false"/>
              <parameter key="parallel_local_normalization" value="false"/>
              <parameter key="series_rotate_labels" value="false"/>
              <parameter key="series_multiple_rotate_labels" value="false"/>
              <parameter key="som_jitter_amount" value="0"/>
              <parameter key="block_axis_x_axis_log_scale" value="false"/>
              <parameter key="block_axis_y_axis_log_scale" value="false"/>
              <parameter key="block_jitter_amount" value="0"/>
              <parameter key="block_rotate_labels" value="false"/>
              <parameter key="deviation_rotate_labels" value="false"/>
              <parameter key="deviation_local_normalization" value="false"/>
              <parameter key="histogram_absolute_values" value="false"/>
              <parameter key="histogram_rotate_labels" value="false"/>
              <parameter key="histogram_log_scale" value="false"/>
              <parameter key="histogram_number_of_bins" value="40"/>
              <parameter key="histogram_opaqueness" value="100"/>
              <parameter key="histogram_color_absolute_values" value="false"/>
              <parameter key="histogram_color_rotate_labels" value="false"/>
              <parameter key="histogram_color_log_scale" value="false"/>
              <parameter key="histogram_color_number_of_bins" value="40"/>
              <parameter key="histogram_color_opaqueness" value="100"/>
              <parameter key="bars_absolute_values" value="false"/>
              <parameter key="bars_rotate_labels" value="false"/>
              <parameter key="bars_aggregation" value="none"/>
              <parameter key="bars_use_distinct" value="false"/>
              <parameter key="bars_orientation" value="vertical"/>
              <parameter key="bars_stacked_absolute_values" value="false"/>
              <parameter key="bars_stacked_rotate_labels" value="false"/>
              <parameter key="bars_stacked_aggregation" value="none"/>
              <parameter key="bars_stacked_use_distinct" value="false"/>
              <parameter key="bars_stacked_orientation" value="vertical"/>
              <parameter key="pareto_rotate_labels" value="false"/>
              <parameter key="pareto_sorting_direction" value="Descending Keys"/>
              <parameter key="pareto_show_bar_labels" value="true"/>
              <parameter key="pareto_show_cumulative_labels" value="false"/>
              <parameter key="distribution_rotate_labels" value="false"/>
              <parameter key="web_absolute_values" value="false"/>
              <parameter key="web_rotate_labels" value="false"/>
              <parameter key="web_aggregation" value="none"/>
              <parameter key="web_use_distinct" value="false"/>
              <parameter key="pie_absolute_values" value="false"/>
              <parameter key="pie_aggregation" value="none"/>
              <parameter key="pie_use_distinct" value="false"/>
              <parameter key="pie_explosion_amount" value="0"/>
              <parameter key="pie_3d_absolute_values" value="false"/>
              <parameter key="pie_3d_aggregation" value="none"/>
              <parameter key="pie_3d_use_distinct" value="false"/>
              <parameter key="ring_absolute_values" value="false"/>
              <parameter key="ring_aggregation" value="none"/>
              <parameter key="ring_use_distinct" value="false"/>
              <parameter key="ring_explosion_amount" value="0"/>
            </list>
          </operator>
          <connect from_op="Retrieve Iris" from_port="output" to_op="Generate Report" to_port="through 1"/>
          <connect from_op="Generate Report" from_port="through 1" to_op="Report" to_port="reportable in"/>
          <connect from_op="Report" from_port="reportable out" to_op="Report (2)" to_port="reportable in"/>
          <connect from_op="Report (2)" from_port="reportable out" to_op="Report (3)" to_port="reportable in"/>
          <connect from_op="Report (3)" from_port="reportable out" to_port="result 1"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="sink_result 1" spacing="0"/>
          <portSpacing port="sink_result 2" spacing="0"/>
        </process>
      </operator>
    </process>
  • gbortz27gbortz27 Member Posts: 22 Contributor II
    Hi

    Thanks

    Where do I insert this code

    I am a beginner ..is it the HTML Operator

    Thanks
  • gbortz27gbortz27 Member Posts: 22 Contributor II
    Hi

    Still dont know how to use the code supplied  above .

    Where do I insert it ?

    Would really like to try it

    Thanks  and Appreciated

    Graham
  • Marco_BoeckMarco_Boeck Administrator, Moderator, Employee-RapidMiner, Member, University Professor Posts: 1,996 RM Engineering
    Hi,

    click in the process window, and simply paste the entire XML string into it. Note that this will overwrite your current process so best to do it in a new one. Alternatively, you can open the "XML" view and paste it there.

    Regards,
    Marco
Sign In or Register to comment.