[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69A1T4T6N6V7VDQPSJWRMPW":3,"skill-same:01M69A1T4T6N6V7VDQPSJWRMPW":94},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":17,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M69A1T4T6N6V7VDQPSJWRMPW","visual-interactivity","可视化交互联动实现","Implements visual selections and coordinated visual behavior. Covers Vega-Lite native selections, VegaVisual and DataGrid interaction events, cross-filtering, cross-highlighting, filter-aware grid totals, and parameterized query factories for runtime visual state.","实现可视化选择及协调一致的可视化行为。涵盖 Vega-Lite 原生选择、VegaVisual 与 DataGrid 交互事件、交叉筛选、交叉高亮、感知筛选的网格总计，以及用于运行时可视化状态的参数化查询工厂。","microsoft\u002Ffabric-apps-analytic-templates","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69A1FS1CN0V6AX6B3TKVA5N",30,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvisual-interactivity\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43],"visual interactivity","visual","state","behavior","filtering","query","runtime","interaction","filter","events","native","grid","for","2026-11-10 10:12:30",false,"---\nname: visual-interactivity\ndescription: >\n  Implements visual selections and coordinated visual behavior.\n  Covers Vega-Lite native selections, VegaVisual and DataGrid interaction\n  events, cross-filtering, cross-highlighting, filter-aware grid totals,\n  and parameterized query factories for runtime visual state.\n---\n\n# Visual Interactivity\n\nUse this skill to implement visual selections and coordinated behavior. Visual components emit selections and render the tables they receive. For report interactions, an `InteractionManager` from `@microsoft\u002Ffabric-interaction-manager` owns the selection state and compiles it into DAX filters for the other visuals' queries.\n\n## Choose the implementation\n\nThis file covers manager configuration, source binding, and target capabilities. Read a reference only when the page needs it:\n\n| Behavior | Read |\n|---|---|\n| Highlight or dim marks inside one chart | [Native selections](references\u002Fnative-selections.md) |\n| Coordinate the visuals, grids, and slicers on a page | [Interaction Manager](#interaction-manager) below, then [Query factories](references\u002Fquery-factories.md) for every target's filter insertion and loading |\n| Cross-highlight a bar, column, pie, or donut target | [Highlight queries](references\u002Fhighlight-queries.md) |\n| Filter a measures-only, columns-only, multiple-base, or Top N query, or one with an outer filter context | [Advanced query shapes](references\u002Fadvanced-query-shapes.md) |\n| Keep a provided DataGrid total aligned with local filters, including a managed grid | [Filter-aware grid totals](references\u002Ffilter-aware-grid-totals.md) |\n| Change DAX or a spec from other runtime state | [Query factories](references\u002Fquery-factories.md#structural-variants) |\n| Publish predicates from a custom control | The [package README](..\u002F..\u002F..\u002Fnode_modules\u002F@microsoft\u002Ffabric-interaction-manager\u002FREADME.md#selections): sets, ranges, BLANK, dates, text |\n\nPrefer native Vega-Lite behavior for styling that is entirely local to one chart. Route selections that affect other visuals through the Interaction Manager.\n\nThe API surface below and the references' examples cover every export a template page needs, so do not search the package's `.d.ts` files.\n\n## API surface\n\n```ts\n\u002F\u002F Root entry: no React dependency.\nimport {\n    InteractionManager,          \u002F\u002F new InteractionManager(configuration: InteractionConfiguration)\n    createHighlightData,         \u002F\u002F (all, highlightedSubset, groupingFields: readonly string[], missingMeasureReplacementValues: Record\u003Cstring, number | null>, plottedMeasureFields: readonly string[]) => { all: DataTable; highlighted: DataTable }\n} from \"@microsoft\u002Ffabric-interaction-manager\";\nimport type {\n    InteractionConfiguration,    \u002F\u002F { semanticModelId: string; fields: Record\u003Cstring, InteractionField>; components: Record\u003Cstring, InteractionComponent>; rules?: InteractionRule[] }\n    InteractionField,            \u002F\u002F { table: string; column: string; dataType: \"string\" | \"number\" | \"boolean\" | \"date\" | \"datetime\" }\n    InteractionComponent,        \u002F\u002F { kind?: \"visual\" | \"grid\" | \"slicer\" | \"custom\"; selectableFields?: string[]; sourceEffect?: \"filter\" | \"auto\"; canFilter?: boolean; canHighlight?: boolean; receivesInteractionsByDefault?: boolean }\n    InteractionRule,             \u002F\u002F { sourceId: string; targetId: string; targetEffect: \"filter\" | \"highlight\" | \"none\" }\n    ManagedQueryFactoryParams,   \u002F\u002F { interactionFilters?: readonly string[] }\n    InteractionTargetLoadContext,\u002F\u002F { isCrossHighlightActive: boolean; compiledFilters: CompiledDaxFilters }\n    CompiledDaxFilters,          \u002F\u002F getFilters(mode: \"baseline\" | \"highlight\"): readonly string[]\n    InteractionTargetData,       \u002F\u002F DataTable | { all: DataTable; highlighted: DataTable }\n    ManagedTargetLoadState,      \u002F\u002F loading | refreshing | ready | refresh-error (retained data + error) | error (no data)\n    ManagedInteractionSource,    \u002F\u002F { selections; selectableFields; onInteraction; error?: Error }\n} from \"@microsoft\u002Ffabric-interaction-manager\";\n\n\u002F\u002F React entry.\nimport {\n    InteractionManagerProvider,  \u002F\u002F \u003CInteractionManagerProvider manager={manager}>\n    useManagedInteractionSource, \u002F\u002F (sourceId: string) => ManagedInteractionSource\n    useManagedInteractionTarget, \u002F\u002F (targetId: string, loader: (context: InteractionTargetLoadContext) => Promise\u003CInteractionTargetData>) => ManagedTargetLoadState\n    useInteractionManager,       \u002F\u002F () => InteractionManager; call .clearAll() to reset every source\n} from \"@microsoft\u002Ffabric-interaction-manager\u002Freact\";\n\n\u002F\u002F Template helpers.\nimport { useQueryFactoryTarget } from \"@\u002Fhooks\u002Fuse-query-factory-target\";\n\u002F\u002F useQueryFactoryTarget(targetId, factory, params, highlightAlignment?: HighlightAlignment) => QueryFactoryTargetState\n\u002F\u002F   data is DataTable, or { all, highlighted } with highlightAlignment: { groupingFields; missingMeasureReplacementValues; plottedMeasureFields }\nimport { executeQueryFactory, insertInteractionFilters } from \"@\u002Flib\u002Fquery-factory\";\n\u002F\u002F executeQueryFactory(factory: { connection, query, columnMetadata }, bypassCache = false): Promise\u003CDataTable>; for custom loaders\n\u002F\u002F insertInteractionFilters(query, filters, marker, position: \"beforeMeasures\" | \"afterTable\"): string\n```\n\nSelection types (`SemanticSelection`, `InteractionPredicate`, `InteractionValue`, `RangeBoundary`) and `isDataTable` come from `@microsoft\u002Ffabric-visuals-core`.\n\n## Interaction Manager\n\n### Configure the manager\n\nConfigure one `InteractionManager` per interaction boundary, at the nearest common host of the coordinated components, and wrap that part of the page in `InteractionManagerProvider`. Create it once with `useState(() => new InteractionManager(configuration))`; configuration is fixed for the manager's lifetime. The package README's [Configure a manager](..\u002F..\u002F..\u002Fnode_modules\u002F@microsoft\u002Ffabric-interaction-manager\u002FREADME.md#configure-a-manager) section lists each component kind's defaults and pair overrides through `rules`; read it only when the page needs to change those defaults.\n\nWhen writing the configuration for a template page:\n\n- Set `semanticModelId` to the one semantic model whose fields this manager configures.\n- Key `fields` by the bracket-free column aliases in query results, and map each to its model table, column, and data type.\n- List each source's `selectableFields` explicitly; an omitted list means every configured field. Keep those columns, with their raw model values rather than formatted labels, in the source's data even when hidden.\n- Use `kind: \"visual\"` for charts, `\"grid\"` for `DataGrid`, and `\"slicer\"` for slicers. Set `canHighlight` on each visual as described in [Coordinated visuals](#coordinated-visuals).\n\n### Bind sources\n\nBind each component that has selectable model-field identities as a source. Charts and grids that receive interactions are sources too; slicers and custom controls add sources rather than replacing them:\n\n```tsx\nconst source = useManagedInteractionSource(\"salesChart\");\n\n\u003CVegaVisual spec={vegaLiteSpec} data={result.data} theme={theme}\n    isCrossHighlightActive={result.isCrossHighlightActive}\n    selections={source.selections} selectableFields={source.selectableFields}\n    onInteraction={source.onInteraction} \u002F>\n{source.error && \u003Cdiv role=\"alert\">{source.error.message}\u003C\u002Fdiv>}\n```\n\n- `DataGrid` takes the same source props. Controlled chart selection requires a Vega-Lite spec.\n- Each click publishes the component's complete selection. When the manager rejects a selection, it sets `source.error` and keeps the previously accepted selection.\n- The manager owns accepted selections. Do not mirror them into component state.\n- Slicers only report selections: pass `source.onInteraction` and render `source.error`. Slicers that report interactions reject JavaScript `Date` values, so pass dates as the strings the model returns.\n- Clear one source by passing `[{ action: \"clear\" }]` to its `onInteraction`, or every source with `useInteractionManager().clearAll()`. Controlled components update without raising selection events.\n\nLoad every component that receives interactions with `useQueryFactoryTarget`; see [Query factories](references\u002Fquery-factories.md). A shared chart or grid wrapper binds both hooks and passes the source props; render target-only components through a separate path.\n\nA component is target-only when its rows have no selectable identities, such as a measures-only grid, or when the user asks for it. Register it with `selectableFields: []`, load it as a target, and render it without source props as shown in [Query factories](references\u002Fquery-factories.md#load-the-target).\n\n## Coordinated visuals\n\n- **Cross-filtering** re-evaluates the target under the manager's compiled DAX filters. Do not filter pre-aggregated results in the browser; it cannot recalculate distinct counts, ratios, totals, or selections on unprojected columns. See [Query factories](references\u002Fquery-factories.md).\n- **Cross-highlighting** keeps the full baseline visible, dimmed, and draws the selected subset bright on top. Re-aggregate the subset at the baseline's grouping, measures, and row set rather than filtering an already aggregated baseline table. See [Highlight queries](references\u002Fhighlight-queries.md).\n- **Local presentation filters**, such as a search box over loaded grid rows or a Vega-Lite filter inside one unmanaged visual, only restrict displayed rows and can run in the browser. Label any subtotal over locally filtered rows accordingly.\n\nChoose each visual target's `canHighlight` from its mark type and measures:\n\n| Visual | Target configuration |\n|---|---|\n| Bar and column, including stacked and clustered | Cross-highlight with a highlight alignment; pass the spec unchanged |\n| Pie and donut | Cross-highlight when the measures are non-negative and additive; otherwise `canHighlight: false` |\n| Line and scatter | `canHighlight: false`; they receive cross-filters |\n| Other shapes and layered combinations | `canHighlight: false` unless the target draws its own layers from named data; see [Highlight queries](references\u002Fhighlight-queries.md#render-the-target) |\n\nImplement the manager configuration and highlight alignment together. `createHighlightData` falls back to showing the highlighted values as the main values when they cannot be drawn as a part of the baseline, so wire highlighting by visual type without checking each source's relationships or measure definitions.\n\n## Implementation workflow\n\n1. Identify the sources, targets, and each target's behavior from [Coordinated visuals](#coordinated-visuals).\n2. Discover the model fields, then register fields and components in one `InteractionManager` at the nearest common host of the coordinated visuals.\n3. Read [Query factories](references\u002Fquery-factories.md). Accept `ManagedQueryFactoryParams` in each target's query factory and load it with `useQueryFactoryTarget`. Before loading a bar, column, pie, or donut target, read [Highlight queries](references\u002Fhighlight-queries.md); for other query shapes, use the table in [Choose the implementation](#choose-the-implementation).\n4. Bind every source with `useManagedInteractionSource` and pass its props to the rendered component.\n5. Keep showing the previous result while a replacement query is loading.\n6. Verify repeated selection, deselection, empty results, and query failures.","# Visual Interactivity\n\nUse this skill to implement visual selections and coordinated behavior. Visual components emit selections and render the tables they receive. For report interactions, an `InteractionManager` from `@microsoft\u002Ffabric-interaction-manager` owns the selection state and compiles it into DAX filters for the other visuals' queries.\n\n## Choose the implementation\n\nThis file covers manager configuration, source binding, and target capabilities. Read a reference only when the page needs it:\n\n| Behavior | Read |\n|---|---|\n| Highlight or dim marks inside one chart | [Native selections](references\u002Fnative-selections.md) |\n| Coordinate the visuals, grids, and slicers on a page | [Interaction Manager](#interaction-manager) below, then [Query factories](references\u002Fquery-factories.md) for every target's filter insertion and loading |\n| Cross-highlight a bar, column, pie, or donut target | [Highlight queries](references\u002Fhighlight-queries.md) |\n| Filter a measures-only, columns-only, multiple-base, or Top N query, or one with an outer filter context | [Advanced query shapes](references\u002Fadvanced-query-shapes.md) |\n| Keep a provided DataGrid total aligned with local filters, including a managed grid | [Filter-aware grid totals](references\u002Ffilter-aware-grid-totals.md) |\n| Change DAX or a spec from other runtime state | [Query factories](references\u002Fquery-factories.md#structural-variants) |\n| Publish predicates from a custom control | The [package README](..\u002F..\u002F..\u002Fnode_modules\u002F@microsoft\u002Ffabric-interaction-manager\u002FREADME.md#selections): sets, ranges, BLANK, dates, text |\n\nPrefer native Vega-Lite behavior for styling that is entirely local to one chart. Route selections that affect other visuals through the Interaction Manager.\n\nThe API surface below and the references' examples cover every export a template page needs, so do not search the package's `.d.ts` files.\n\n## API surface\n\n```ts\n\u002F\u002F Root entry: no React dependency.\nimport {\n    InteractionManager,          \u002F\u002F new InteractionManager(configuration: InteractionConfiguration)\n    createHighlightData,         \u002F\u002F (all, highlightedSubset, groupingFields: readonly string[], missingMeasureReplacementValues: Record\u003Cstring, number | null>, plottedMeasureFields: readonly string[]) => { all: DataTable; highlighted: DataTable }\n} from \"@microsoft\u002Ffabric-interaction-manager\";\nimport type {\n    InteractionConfiguration,    \u002F\u002F { semanticModelId: string; fields: Record\u003Cstring, InteractionField>; components: Record\u003Cstring, InteractionComponent>; rules?: InteractionRule[] }\n    InteractionField,            \u002F\u002F { table: string; column: string; dataType: \"string\" | \"number\" | \"boolean\" | \"date\" | \"datetime\" }\n    InteractionComponent,        \u002F\u002F { kind?: \"visual\" | \"grid\" | \"slicer\" | \"custom\"; selectableFields?: string[]; sourceEffect?: \"filter\" | \"auto\"; canFilter?: boolean; canHighlight?: boolean; receivesInteractionsByDefault?: boolean }\n    InteractionRule,             \u002F\u002F { sourceId: string; targetId: string; targetEffect: \"filter\" | \"highlight\" | \"none\" }\n    ManagedQueryFactoryParams,   \u002F\u002F { interactionFilters?: readonly string[] }\n    InteractionTargetLoadContext,\u002F\u002F { isCrossHighlightActive: boolean; compiledFilters: CompiledDaxFilters }\n    CompiledDaxFilters,          \u002F\u002F getFilters(mode: \"baseline\" | \"highlight\"): readonly string[]\n    InteractionTargetData,       \u002F\u002F DataTable | { all: DataTable; highlighted: DataTable }\n    ManagedTargetLoadState,      \u002F\u002F loading | refreshing | ready | refresh-error (retained data + error) | error (no data)\n    ManagedInteractionSource,    \u002F\u002F { selections; selectableFields; onInteraction; error?: Error }\n} from \"@microsoft\u002Ffabric-interaction-manager\";\n\n\u002F\u002F React entry.\nimport {\n    InteractionManagerProvider,  \u002F\u002F \u003CInteractionManagerProvider manager={manager}>\n    useManagedInteractionSource, \u002F\u002F (sourceId: string) => ManagedInteractionSource\n    useManagedInteractionTarget, \u002F\u002F (targetId: string, loader: (context: InteractionTargetLoadContext) => Promise\u003CInteractionTargetData>) => ManagedTargetLoadState\n    useInteractionManager,       \u002F\u002F () => InteractionManager; call .clearAll() to reset every source\n} from \"@microsoft\u002Ffabric-interaction-manager\u002Freact\";\n\n\u002F\u002F Template helpers.\nimport { useQueryFactoryTarget } from \"@\u002Fhooks\u002Fuse-query-factory-target\";\n\u002F\u002F useQueryFactoryTarget(targetId, factory, params, highlightAlignment?: HighlightAlignment) => QueryFactoryTargetState\n\u002F\u002F   data is DataTable, or { all, highlighted } with highlightAlignment: { groupingFields; missingMeasureReplacementValues; plottedMeasureFields }\nimport { executeQueryFactory, insertInteractionFilters } from \"@\u002Flib\u002Fquery-factory\";\n\u002F\u002F executeQueryFactory(factory: { connection, query, columnMetadata }, bypassCache = false): Promise\u003CDataTable>; for custom loaders\n\u002F\u002F insertInteractionFilters(query, filters, marker, position: \"beforeMeasures\" | \"afterTable\"): string\n```\n\nSelection types (`SemanticSelection`, `InteractionPredicate`, `InteractionValue`, `RangeBoundary`) and `isDataTable` come from `@microsoft\u002Ffabric-visuals-core`.\n\n## Interaction Manager\n\n### Configure the manager\n\nConfigure one `InteractionManager` per interaction boundary, at the nearest common host of the coordinated components, and wrap that part of the page in `InteractionManagerProvider`. Create it once with `useState(() => new InteractionManager(configuration))`; configuration is fixed for the manager's lifetime. The package README's [Configure a manager](..\u002F..\u002F..\u002Fnode_modules\u002F@microsoft\u002Ffabric-interaction-manager\u002FREADME.md#configure-a-manager) section lists each component kind's defaults and pair overrides through `rules`; read it only when the page needs to change those defaults.\n\nWhen writing the configuration for a template page:\n\n- Set `semanticModelId` to the one semantic model whose fields this manager configures.\n- Key `fields` by the bracket-free column aliases in query results, and map each to its model table, column, and data type.\n- List each source's `selectableFields` explicitly; an omitted list means every configured field. Keep those columns, with their raw model values rather than formatted labels, in the source's data even when hidden.\n- Use `kind: \"visual\"` for charts, `\"grid\"` for `DataGrid`, and `\"slicer\"` for slicers. Set `canHighlight` on each visual as described in [Coordinated visuals](#coordinated-visuals).\n\n### Bind sources\n\nBind each component that has selectable model-field identities as a source. Charts and grids that receive interactions are sources too; slicers and custom controls add sources rather than replacing them:\n\n```tsx\nconst source = useManagedInteractionSource(\"salesChart\");\n\n\u003CVegaVisual spec={vegaLiteSpec} data={result.data} theme={theme}\n    isCrossHighlightActive={result.isCrossHighlightActive}\n    selections={source.selections} selectableFields={source.selectableFields}\n    onInteraction={source.onInteraction} \u002F>\n{source.error && \u003Cdiv role=\"alert\">{source.error.message}\u003C\u002Fdiv>}\n```\n\n- `DataGrid` takes the same source props. Controlled chart selection requires a Vega-Lite spec.\n- Each click publishes the component's complete selection. When the manager rejects a selection, it sets `source.error` and keeps the previously accepted selection.\n- The manager owns accepted selections. Do not mirror them into component state.\n- Slicers only report selections: pass `source.onInteraction` and render `source.error`. Slicers that report interactions reject JavaScript `Date` values, so pass dates as the strings the model returns.\n- Clear one source by passing `[{ action: \"clear\" }]` to its `onInteraction`, or every source with `useInteractionManager().clearAll()`. Controlled components update without raising selection events.\n\nLoad every component that receives interactions with `useQueryFactoryTarget`; see [Query factories](references\u002Fquery-factories.md). A shared chart or grid wrapper binds both hooks and passes the source props; render target-only components through a separate path.\n\nA component is target-only when its rows have no selectable identities, such as a measures-only grid, or when the user asks for it. Register it with `selectableFields: []`, load it as a target, and render it without source props as shown in [Query factories](references\u002Fquery-factories.md#load-the-target).\n\n## Coordinated visuals\n\n- **Cross-filtering** re-evaluates the target under the manager's compiled DAX filters. Do not filter pre-aggregated results in the browser; it cannot recalculate distinct counts, ratios, totals, or selections on unprojected columns. See [Query factories](references\u002Fquery-factories.md).\n- **Cross-highlighting** keeps the full baseline visible, dimmed, and draws the selected subset bright on top. Re-aggregate the subset at the baseline's grouping, measures, and row set rather than filtering an already aggregated baseline table. See [Highlight queries](references\u002Fhighlight-queries.md).\n- **Local presentation filters**, such as a search box over loaded grid rows or a Vega-Lite filter inside one unmanaged visual, only restrict displayed rows and can run in the browser. Label any subtotal over locally filtered rows accordingly.\n\nChoose each visual target's `canHighlight` from its mark type and measures:\n\n| Visual | Target configuration |\n|---|---|\n| Bar and column, including stacked and clustered | Cross-highlight with a highlight alignment; pass the spec unchanged |\n| Pie and donut | Cross-highlight when the measures are non-negative and additive; otherwise `canHighlight: false` |\n| Line and scatter | `canHighlight: false`; they receive cross-filters |\n| Other shapes and layered combinations | `canHighlight: false` unless the target draws its own layers from named data; see [Highlight queries](references\u002Fhighlight-queries.md#render-the-target) |\n\nImplement the manager configuration and highlight alignment together. `createHighlightData` falls back to showing the highlighted values as the main values when they cannot be drawn as a part of the baseline, so wire highlighting by visual type without checking each source's relationships or measure definitions.\n\n## Implementation workflow\n\n1. Identify the sources, targets, and each target's behavior from [Coordinated visuals](#coordinated-visuals).\n2. Discover the model fields, then register fields and components in one `InteractionManager` at the nearest common host of the coordinated visuals.\n3. Read [Query factories](references\u002Fquery-factories.md). Accept `ManagedQueryFactoryParams` in each target's query factory and load it with `useQueryFactoryTarget`. Before loading a bar, column, pie, or donut target, read [Highlight queries](references\u002Fhighlight-queries.md); for other query shapes, use the table in [Choose the implementation](#choose-the-implementation).\n4. Bind every source with `useManagedInteractionSource` and pass its props to the rendered component.\n5. Keep showing the previous result while a replacement query is loading.\n6. Verify repeated selection, deselection, empty results, and query failures.",{"name":5,"description":7},"main","484e9b20d120f5f9490fa75c71f3d3748956f4a2",".agents\u002Fskills\u002Fvisual-interactivity",14,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 06:36:06",{"source":9,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add microsoft\u002Ffabric-apps-analytic-templates --skill visual-interactivity",{"tool":64,"command":65},"bunx","bunx skills add microsoft\u002Ffabric-apps-analytic-templates --skill visual-interactivity",{"tool":67,"command":68},"pnpm","pnpm dlx skills add microsoft\u002Ffabric-apps-analytic-templates --skill visual-interactivity","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvisual-interactivity\u002FSKILL.md",true,[72,78,82,86,90],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fadvanced-query-shapes.md","REFERENCE","参考文档",6050,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvisual-interactivity\u002Freferences\u002Fadvanced-query-shapes.md",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Ffilter-aware-grid-totals.md",4308,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvisual-interactivity\u002Freferences\u002Ffilter-aware-grid-totals.md",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fhighlight-queries.md",3865,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvisual-interactivity\u002Freferences\u002Fhighlight-queries.md",{"path":87,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fnative-selections.md",900,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvisual-interactivity\u002Freferences\u002Fnative-selections.md",{"path":91,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fquery-factories.md",6901,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvisual-interactivity\u002Freferences\u002Fquery-factories.md",[95,122,136,153,167,181],{"skillNo":96,"name":97,"nameZh":98,"description":99,"descriptionZh":100,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":101,"categories":102,"keywords":105,"publishedAt":44},"01M69A1VQP5WSZ66RXSG09KM9H","visuals","数据可视化组件开发","Use when user wants to incorporate charts, graphs, KPI cards, data grid, slicers, or other visual representations of data into their project. Use VegaVisual, KpiCard, DataGrid, and built-in slicer components, utilizing the shared DataTable input, formatting, and theme. Covers the VisualContainer chrome charts, KPI cards, and grids get by default, plus named multi-table data input for layered overlays and reference lines.","当用户希望将图表、图形、KPI 卡片、数据网格、切片器或其他数据可视化表示整合到其项目中时使用。使用 VegaVisual、KpiCard、DataGrid 和内置切片器组件，利用共享的 DataTable 输入、格式化和主题。涵盖 VisualContainer 为图表、KPI 卡片和网格默认提供的框架，以及用于分层叠加和参考线的命名多表数据输入。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvisuals\u002FSKILL.md",[103,104],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[97,106,107,108,109,110,111,43,112,113,114,115,116,117,118,119,32,42,120,121],"data","shared","theme","get","Charts","input","overlays","multi","project","default","graphs","layered","kpi","use","components","chrome",{"skillNo":123,"name":124,"nameZh":125,"description":126,"descriptionZh":127,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":128,"categories":129,"keywords":134,"publishedAt":44},"01M69A1RD7HV2Q26JNJME154M9","semantic-model-data","语义模型数据读取","How the app reads semantic model data at runtime: useSemanticModelQuery, its normalized result and error shape, error categories and overflow, bounding rows, and the app-level query cache.","应用如何在运行时读取语义模型数据：useSemanticModelQuery、其规范化结果与错误结构、错误类别与数据溢出、行边界限制，以及应用级查询缓存。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsemantic-model-data\u002FSKILL.md",[130,133],{"categoryNo":131,"categoryName":132,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[135],"semantic model data",{"skillNo":137,"name":138,"nameZh":139,"description":140,"descriptionZh":141,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":142,"categories":143,"keywords":150,"publishedAt":44},"01M69A1PZMYACDCEWDXQZ9YCQR","schema-query","语义模型 DAX 查询","Ground DAX work in the cached semantic-model catalog, shipped measures, relationships, and explicit filter values.","基于缓存的语义模型目录、已发布的度量值、关系以及显式筛选值来开展 DAX 工作。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fschema-query\u002FSKILL.md",[144,147],{"categoryNo":145,"categoryName":146,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":148,"categoryName":149,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",[151,152],"schema query","dax",{"skillNo":154,"name":155,"nameZh":156,"description":157,"descriptionZh":158,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":159,"categories":160,"keywords":163,"publishedAt":44},"01M69A1N2GY1T810P5WKHCKTC4","query-design","DAX 查询设计","Separates DAX data-fetching from TypeScript presentation. Guides when to use  DAX vs. TypeScript vs. Vega-Lite for aggregation, total rows, FORMAT(), SELECTCOLUMNS,  BLANK handling, fixed filters, multi-grain queries, and format strings.","将 DAX 数据获取与 TypeScript 呈现分离。指导在聚合、总计行、FORMAT()、SELECTCOLUMNS、BLANK 处理、固定筛选器、多粒度查询和格式字符串等场景下，何时使用 DAX、TypeScript 或 Vega-Lite。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fquery-design\u002FSKILL.md",[161,162],{"categoryNo":145,"categoryName":146,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":148,"categoryName":149,"taxonomyType":23,"taxonomyTypeDesc":24},[164,165,152,166],"design","query design","typescript",{"skillNo":168,"name":169,"nameZh":170,"description":171,"descriptionZh":172,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":173,"categories":174,"keywords":177,"publishedAt":44},"01M69A1KFX4240RA669XAK9QA2","dax-authoring","DAX 查询编写与测试","Write and test DAX queries against Power BI semantic models. Covers DAX syntax rules, query patterns, time intelligence, and an iterative test workflow using `npx fabric-app-semantic-model-tools run-dax-query --dax \u003Cfile> --alias \u003Cname>`.","针对 Power BI 语义模型编写和测试 DAX 查询。涵盖 DAX 语法规则、查询模式、时间智能，以及使用 `npx fabric-app-semantic-model-tools run-dax-query --dax \u003Cfile> --alias \u003Cname>` 的迭代测试工作流。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdax-authoring\u002FSKILL.md",[175,176],{"categoryNo":145,"categoryName":146,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":148,"categoryName":149,"taxonomyType":23,"taxonomyTypeDesc":24},[178,152,179,180],"dax authoring","test","workflow",{"skillNo":182,"name":183,"nameZh":184,"description":185,"descriptionZh":186,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":187,"categories":188,"keywords":195,"publishedAt":44},"01M69A1HWMAGX3YTW6VNCVHAJP","app-design","应用界面与视觉设计","Use when building or modifying the app layout,  creating UI components, or making any visual design decisions.  Ensures consistency, accessibility, and a polished, unique app.","在构建或修改应用布局、创建 UI 组件或做出任何视觉设计决策时使用。确保一致性、可访问性，以及精致、独特的应用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ffabric-apps-analytic-templates\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fapp-design\u002FSKILL.md",[189,192],{"categoryNo":190,"categoryName":191,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKC3WYCB32755485KS6","视觉设计",{"categoryNo":193,"categoryName":194,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",[196,164,197,198,120,199,200,201,119,202,32,203,204],"app design","app","layout","accessibility","consistency","ui components","decisions","visual design","ui"]