«Կաղապար:Graph:Lines»–ի խմբագրումների տարբերություն

Copying 2 changes by Bouzinac,Timbaaa: Syncing from sandbox - with two new parameters from mw:Template:Graph:Lines. (docs)
(Նոր էջ «<includeonly>{{#tag:{{#if:{{{debug|}}}|syntaxhighlight|graph}}|</includeonly><noinclude>{{documentation}}<syntaxhighlight lang=html><graph></syntaxhighlight>{{#tag:syntaxhighligh...»:)
 
(Copying 2 changes by Bouzinac,Timbaaa: Syncing from sandbox - with two new parameters from mw:Template:Graph:Lines. (docs))
<includeonly>{{#tag:{{#if:{{{debug|}}}|syntaxhighlight|graph}}|</includeonly><noinclude>{{documentationՊարզաբանում}}<syntaxhighlight lang=html><graph mode="interactive" title=""></syntaxhighlight>{{#tag:syntaxhighlight|</noinclude>
{
//
| "datum.{{{xField}}}"
}}
},
, {"type": "sort", "by": ["_xfield"]},
{{#if:{{{series|}}}
| , {"type": "fold", "fields": [{{{series}}}]}
}}
{{#if:{{{replaceZerosWith|}}}
| , {"type": "formula", "field": "_yfield", "expr": "max(datum.{{#if:{{{series|}}}|value|{{{value|value}}}}}, {{{replaceZerosWith}}})" }
| , {"type": "formula", "field": "_yfield", "expr": "datum.{{#if:{{{series|}}}|value|{{{value|value}}}}}" }
}}
{{#ifeq:{{{yScale|}}}|log
| , {"type": "filter", "test": "datum._yfield != 0"}
}}
]
{
"name": "y",
"type": "{{{yScale|linear}}}",
"range": "height",
"domain": {"data": "chart", "field": "{{{value|value}}}_yfield"},
{{#if:{{{yZero|}}}|"zero": {{{yZero}}},}}
{{#if:{{{yMin|}}}|"domainMin": {{{yMin}}},}}
"properties": {
"enter": {
"y": {"scale": "y", "field": "{{{value|value}}}_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "{{{group|key}}}"},
15

edits