Commit cbc8c61a authored by Sebastien Robin's avatar Sebastien Robin Committed by Eteri

erp5_officejs: move graph charts json interface schema to a dedicated file

parent 67d153b4
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Field parameters for rendering graph",
"properties": {
"value": {
"description": "Parameters to generate a graph",
"properties": {
"layout": {
"description": "definition of layout",
"properties": {
"title": {
"description": "The title of the graph",
"type": "string"
},
"axis_dict": {
"properties": {
".*": {
"description": "layout definition of one axis",
"properties": {
"title": {
"description": "label to display on axis n",
"type": "string"
},
"scale_type": {
"description": "type of axis",
"enum": [
"linear",
"logarithmic"
],
"default": "linear",
"type": "string"
},
"value_type": {
"description": "value type for data on this axis",
"enum": [
"number",
"date",
"string"
],
"default": "number",
"type": "string"
},
"position": {
"description": "where to place the axis, only y axis for now",
"enum": [
"left",
"right"
],
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}
},
"type": "object",
"additionalProperties": false
},
"data": {
"description": "the list of data sets",
"items": {
"properties": {
"value_dict": {
"[0-9]*": {
"description": "values for the axis number n",
"type": "array"
},
"type": "object"
},
"type": {
"description": "type of trace that should be displayed",
"enum": [
"pie",
"bar",
"scatter",
"marker",
"surface",
"line"
],
"default": "scatter",
"type": "string"
},
"title": {
"description": "label for this data set",
"type": "string"
},
"label_list": {
"description": "title for every value",
"type": "array"
},
"axis_mapping_id_dict": {
"[0-9]*": {
"description": "mapping id for the axis number n, this is optional and allows to have several scales per axis, several data set might use same name if they should be grouped on the same scale",
"type": "string"
},
"type": "object"
}
},
"additionalProperties": false,
"type": "object"
},
"type": "array"
}
},
"additionalProperties": false
},
},
"type": "object"
}
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Director</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Director</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Director</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Director</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>classification/collaborative/team</string>
</tuple>
</value>
</item>
<item>
<key> <string>content_md5</string> </key>
<value> <string>17cda639aa01af7b56c9e0f5bf3b2d58</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/json</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>filename</string> </key>
<value> <string>gadget_field_graph_interface_html_schema.json</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>gadget_field_graph_interface_html_schema_json</string> </value>
</item>
<item>
<key> <string>language</string> </key>
<value> <string>de</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>File</string> </value>
</item>
<item>
<key> <string>short_title</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>version</string> </key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -19,118 +19,6 @@ ...@@ -19,118 +19,6 @@
API for various charting libraries API for various charting libraries
Please see json schema for supported parameters. Please see json schema for supported parameters.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Field parameters for rendering graph",
"properties": {
"value": {
"description": "Parameters to generate a graph",
"properties": {
"layout": {
"description": "definition of layout",
"properties": {
"title": {
"description": "The title of the graph",
"type": "string"
},
"axis_dict": {
"properties": {
".*": {
"description": "layout definition of one axis",
"properties": {
"title": {
"description": "label to display on axis n",
"type": "string"
},
"scale_type": {
"description": "type of axis",
"enum": [
"linear",
"logarithmic"
],
"default": "linear",
"type": "string"
},
"value_type": {
"description": "value type for data on this axis",
"enum": [
"number",
"date",
"string"
],
"default": "number",
"type": "string"
},
"position": {
"description": "where to place the axis, only y axis for now",
"enum": [
"left",
"right"
],
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}
},
"type": "object",
"additionalProperties": false
},
"data": {
"description": "the list of data sets",
"items": {
"properties": {
"value_dict": {
"[0-9]*": {
"description": "values for the axis number n",
"type": "array"
},
"type": "object"
},
"type": {
"description": "type of trace that should be displayed",
"enum": [
"pie",
"bar",
"scatter",
"marker",
"surface",
"line"
],
"default": "scatter",
"type": "string"
},
"title": {
"description": "label for this data set",
"type": "string"
},
"label_list": {
"description": "title for every value",
"type": "array"
},
"axis_mapping_id_dict": {
"[0-9]*": {
"description": "mapping id for the axis number n, this is optional and allows to have several scales per axis, several data set might use same name if they should be grouped on the same scale",
"type": "string"
},
"type": "object"
}
},
"additionalProperties": false,
"type": "object"
},
"type": "array"
}
},
"additionalProperties": false
},
},
"type": "object"
}
Options were inspired by https://plot.ly/javascript/ which supports various types Options were inspired by https://plot.ly/javascript/ which supports various types
of charts. of charts.
......
document_module/gadget_field_*
document_module/gadget_officejs_* document_module/gadget_officejs_*
image_module/ckeditor_* image_module/ckeditor_*
image_module/gadget_officejs_* image_module/gadget_officejs_*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment