Support » Plugin: MaxiCharts » Change date_created format

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author maxicharts

    (@maxicharts)

    Hi @nonchiedercilaparola !

    Can you please show the shortcode used ? maybe a link to the page as well ?

    Cheers!

    nonchiedercilaparola

    (@nonchiedercilaparola)

    this is the shortcode i used:

    [gfchartsreports gf_form_id=”2″ datasets_field=”date_created” include=”23,30,31,44,49,68,75″ gf_entry_id=”” type=”radar” width=”400px” height=”300px” data_conversion=”%”  group_fields=”1″ custom_search_criteria='{“status”:”active”,”field_filters”:{“0”:{“key”:”created_by”,”value”:”user:ID”}}}’ chart_js_options=’ title: {display: true, text: “Grafico dei risultati per il Questionario Autovalutativo”}’ /]

    I tried to add the format after “date_created:xxxxx” but it doesn’t work

    Plugin Author maxicharts

    (@maxicharts)

    Ok, i understand, you have 1 dataset per date_created, right ?
    Unfortunately, you cannot change format of the field on the fly, except using WP filters, if you are a developer.

    nonchiedercilaparola

    (@nonchiedercilaparola)

    ok. i would like to change only this field and not the format on all wordpress. so your date_created use a wp filter? can you tell me which filter it use?

    Plugin Author maxicharts

    (@maxicharts)

    You can use mcharts_filter_chart_labels filter that filters all labels after maxicharts processing.

    It is called like this :

    
    $labelsAfterFilter = apply_filters('mcharts_filter_chart_labels', $currentChart['labels']);
    

    $currentChart['labels'] being an array of all labels.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.