{
  "name" : "Flow GeoMap",
  "i18n_name" : "flow_geomap",
  "data_source" : "flows",
  "chart" : [
    {
	    "chart_id" : "flow_geomap", // Each id MUST be different
        "chart_i18n_name" : "flow_geomap",
        "chart_endpoint" : "/lua/rest/v2/get/db/charts/default_rest.lua",
        "chart_events" : { // JS Events, optional feature
            "dataPointSelection" : "db_analyze"
        },
        "chart_css_styles" : { // CSS chart styles, optional feature
            "max-height" : "49rem",
            "min-height" : "49rem",
        },
        "chart_gui_filter" : "status", // Filter displayed in the GUI
        "chart_sql_query" : "SELECT STATUS, IPv4NumToString(IPV4_DST_ADDR) AS IPV4_DST_ADDR_FORMATTED, any(DST_LABEL) DST_LABEL_FORMATTED,IPv4NumToString(IPV4_SRC_ADDR) AS IPV4_SRC_ADDR_FORMATTED, any(SRC_LABEL) SRC_LABEL_FORMATTED, COUNT(*) as flows FROM flows WHERE ($WHERE$) GROUP BY STATUS, IPV4_DST_ADDR_FORMATTED, IPV4_SRC_ADDR_FORMATTED",
        "chart_type" : "geomap",
        "chart_record_value" : "flows",
          "chart_record_label" : [ "STATUS", "ADDR" ],
          "chart_show_label" : [ "LABEL" ],
        "chart_width" : 12, // Chart width, it can be a number between 1 and 12, optional feature
    }
  ],
  "show_in_page" : "analysis",
}
