{{- /* ECharts rendering partial for code fences extended syntax and shortcode usage. - Skips rendering when MarkupScope is home. - Supports chart options from inline content, data key, or resource file. - Supports JavaScript template mode via js/file options. @param {Object} [.Options] - Render options from shortcode or code fence attributes @param {String} [.Options.width] - Chart container width (default: 100%) @param {String} [.Options.height] - Chart container height (default: 30rem) @param {Boolean} [.Options.js] - Whether to treat content as JS option builder @param {Boolean} [.Options.async] - Whether JS template executes asynchronously @param {String} [.Options.data] - Key of data source under data/echarts @param {String} [.Options.file] - Local resource path for js/json/yaml/toml source @param {String} [.Inner] - Inline chart option content @param {Object} [.Page] - Current page context */ -}} {{- if ne hugo.Context.MarkupScope "home" -}} {{- $width := .Options.width | default "100%" -}} {{- $height := .Options.height | default "30rem" -}} {{- $js := .Options.js | default false -}} {{- $async := .Options.async | default false -}} {{- $data := .Options.data -}} {{- $file := .Options.file -}} {{- $attrs := printf `style="width: %v; height: %v;"` $width $height -}}