diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index deb70662..bf1d471a 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -10,4 +10,4 @@ liberapay: # Replace with a single Liberapay username issuehunt: # Replace with a single IssueHunt username otechie: # Replace with a single Otechie username lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry -custom: ['https://www.paypal.me/monitor1394','https://github.com/XCharts-Team/XCharts/blob/master/Documentation/res/alipay.png','https://github.com/XCharts-Team/XCharts/blob/master/Documentation/res/wechat.png'] +custom: ['https://www.paypal.me/monitor1394','https://github.com/XCharts-Team/XCharts/blob/master/Documentation~/img/support_alipay.png','https://github.com/XCharts-Team/XCharts/blob/master/Documentation~/img/support_wechat.png'] diff --git a/CHANGELOG.md.meta b/CHANGELOG.md.meta deleted file mode 100644 index 1582ca4f..00000000 --- a/CHANGELOG.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e66d91d4c396b46bf87034c47ca3b43d -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation.meta b/Documentation.meta deleted file mode 100644 index 2cab140e..00000000 --- a/Documentation.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 0793c29ff7adb422fb93f9f4e29d5a06 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/README.md.meta b/Documentation/README.md.meta deleted file mode 100644 index 5ec956c4..00000000 --- a/Documentation/README.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 56516e67d6e88401e949d4e63792c638 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/SUPPORT.md.meta b/Documentation/SUPPORT.md.meta deleted file mode 100644 index 588d0ee6..00000000 --- a/Documentation/SUPPORT.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 40051c210ea1244a99317f3264ac567f -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/XChartsAPI-EN.md.meta b/Documentation/XChartsAPI-EN.md.meta deleted file mode 100644 index 335be9ac..00000000 --- a/Documentation/XChartsAPI-EN.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 002217c6b4b5348bd86b5a6b881d2622 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/XChartsAPI-ZH.md.meta b/Documentation/XChartsAPI-ZH.md.meta deleted file mode 100644 index 79944bc0..00000000 --- a/Documentation/XChartsAPI-ZH.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 2c38d275e62c6471ea2f4ef69b87b220 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/XChartsConfiguration-EN.md.meta b/Documentation/XChartsConfiguration-EN.md.meta deleted file mode 100644 index 68d7840c..00000000 --- a/Documentation/XChartsConfiguration-EN.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 1fdd2e77324c84364bf033ffefa41123 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/XChartsConfiguration-ZH.md.meta b/Documentation/XChartsConfiguration-ZH.md.meta deleted file mode 100644 index 597b60ce..00000000 --- a/Documentation/XChartsConfiguration-ZH.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 1d5cdb90dc99540768bfb21ea8243d04 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/XChartsFAQ-EN.md.meta b/Documentation/XChartsFAQ-EN.md.meta deleted file mode 100644 index 64743196..00000000 --- a/Documentation/XChartsFAQ-EN.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e803ae0ae73794ec6891fed7551fe01d -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/XChartsFAQ-ZH.md.meta b/Documentation/XChartsFAQ-ZH.md.meta deleted file mode 100644 index 57f60358..00000000 --- a/Documentation/XChartsFAQ-ZH.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 4df833a2a1e6c4a7da37a08379dd2e18 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/XChartsTutorial01-EN.md.meta b/Documentation/XChartsTutorial01-EN.md.meta deleted file mode 100644 index 2b2b77ae..00000000 --- a/Documentation/XChartsTutorial01-EN.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: a772f2d2a3f994d439db4a07365b9554 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/XChartsTutorial01-ZH.md.meta b/Documentation/XChartsTutorial01-ZH.md.meta deleted file mode 100644 index a0596c72..00000000 --- a/Documentation/XChartsTutorial01-ZH.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 2ab7eabdc796a45aea5bc457dc9e27f8 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res.meta b/Documentation/res.meta deleted file mode 100644 index 46be5fd4..00000000 --- a/Documentation/res.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 377ae219d15f048108309cb7a04de87e -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/alipay.png.meta b/Documentation/res/alipay.png.meta deleted file mode 100644 index 04fcfd57..00000000 --- a/Documentation/res/alipay.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: 9619faeb62a184c94b83e389fd22f692 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/linechart-simple.png.meta b/Documentation/res/linechart-simple.png.meta deleted file mode 100644 index 5f03582e..00000000 --- a/Documentation/res/linechart-simple.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: 1e91cbf448b1c44769054375b1686439 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/linechart.png b/Documentation/res/linechart.png deleted file mode 100644 index 6bb2eea8..00000000 Binary files a/Documentation/res/linechart.png and /dev/null differ diff --git a/Documentation/res/linechart.png.meta b/Documentation/res/linechart.png.meta deleted file mode 100644 index 9417852e..00000000 --- a/Documentation/res/linechart.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: 172962e9e20c74c8a8428f507843b6d3 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/linechart1.png.meta b/Documentation/res/linechart1.png.meta deleted file mode 100644 index 2d41701b..00000000 --- a/Documentation/res/linechart1.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: e610f9feea0064345909b632bba12e2e -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/linechart2.png.meta b/Documentation/res/linechart2.png.meta deleted file mode 100644 index 09d9ebae..00000000 --- a/Documentation/res/linechart2.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: ba7e7b5180b354b26baf5314d5da59f6 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/linechart3.png.meta b/Documentation/res/linechart3.png.meta deleted file mode 100644 index e3665c6a..00000000 --- a/Documentation/res/linechart3.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: 42bd080b0812b4bdcb8685adad22cd1e -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/linechart4.png.meta b/Documentation/res/linechart4.png.meta deleted file mode 100644 index 20e6da9c..00000000 --- a/Documentation/res/linechart4.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: 52450d00759b44e678862b5ca8895072 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/op_addcomponent.png.meta b/Documentation/res/op_addcomponent.png.meta deleted file mode 100644 index 649700df..00000000 --- a/Documentation/res/op_addcomponent.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: c7e8baa3a53ba41e9bb63d02176b87ff -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/op_addserie.png.meta b/Documentation/res/op_addserie.png.meta deleted file mode 100644 index d6109272..00000000 --- a/Documentation/res/op_addserie.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: 4fa12bb2901d144b88abb5f304979291 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/op_addseriecomponent.png.meta b/Documentation/res/op_addseriecomponent.png.meta deleted file mode 100644 index 7b2c01f4..00000000 --- a/Documentation/res/op_addseriecomponent.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: b1eb790b2091e4df380350030c6d8d8d -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/op_addseriedatacomponent.png.meta b/Documentation/res/op_addseriedatacomponent.png.meta deleted file mode 100644 index 3eca7ba8..00000000 --- a/Documentation/res/op_addseriedatacomponent.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: 1ca6fe245906a453284b526f09c44eff -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/op_textmeshpro.png.meta b/Documentation/res/op_textmeshpro.png.meta deleted file mode 100644 index 6c13d6f1..00000000 --- a/Documentation/res/op_textmeshpro.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: 9031f7bed8c7f4350affc32cc7016b5e -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/op_textmeshpro3.png.meta b/Documentation/res/op_textmeshpro3.png.meta deleted file mode 100644 index c74cfa5e..00000000 --- a/Documentation/res/op_textmeshpro3.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: 1777b9bc4f1df446eaf01931cb0b07ed -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/wechat.png.meta b/Documentation/res/wechat.png.meta deleted file mode 100644 index a66a7c3c..00000000 --- a/Documentation/res/wechat.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: c62c735b2989c4367b8c97b8ca75c216 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/res/xcharts3.0.png b/Documentation/res/xcharts3.0.png deleted file mode 100644 index 77b7aecf..00000000 Binary files a/Documentation/res/xcharts3.0.png and /dev/null differ diff --git a/Documentation/res/xcharts3.0.png.meta b/Documentation/res/xcharts3.0.png.meta deleted file mode 100644 index 0fdb2fec..00000000 --- a/Documentation/res/xcharts3.0.png.meta +++ /dev/null @@ -1,76 +0,0 @@ -fileFormatVersion: 2 -guid: d824662da0d024d1f95c8d10c870e3ca -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Documentation/XChartsAPI-EN.md b/Documentation~/en/api.md similarity index 90% rename from Documentation/XChartsAPI-EN.md rename to Documentation~/en/api.md index 0b43fd73..167b4455 100644 --- a/Documentation/XChartsAPI-EN.md +++ b/Documentation~/en/api.md @@ -1,102 +1,45 @@ -# Chart API +--- +sidebar_position: 3 +slug: /api +--- -[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
-[XCharts Configuration](XChartsConfiguration-EN.md)
-[XCharts FAQ](XChartsFAQ-EN.md) +# Chart API ## All Class -- [AnimationStyleHelper](#AnimationStyleHelper) -- [AxisContext](#AxisContext) -- [AxisHandler<T>](#AxisHandler<T>) -- [AxisHelper](#AxisHelper) -- [BarChart](#BarChart) -- [BaseChart](#BaseChart) -- [BaseGraph](#BaseGraph) -- [CandlestickChart](#CandlestickChart) -- [ChartCached](#ChartCached) -- [ChartConst](#ChartConst) -- [ChartDrawer](#ChartDrawer) -- [ChartHelper](#ChartHelper) -- [ChartLabel](#ChartLabel) -- [ChartObject](#ChartObject) -- [CheckHelper](#CheckHelper) -- [ColorUtil](#ColorUtil) -- [ComponentHandlerAttribute](#ComponentHandlerAttribute) -- [ComponentHelper](#ComponentHelper) -- [CoordOptionsAttribute](#CoordOptionsAttribute) -- [DataZoomContext](#DataZoomContext) -- [DataZoomHelper](#DataZoomHelper) -- [DateTimeUtil](#DateTimeUtil) -- [DefaultAnimationAttribute](#DefaultAnimationAttribute) -- [DefineSymbolsUtil](#DefineSymbolsUtil) -- [FormatterHelper](#FormatterHelper) -- [GridCoordContext](#GridCoordContext) -- [HeatmapChart](#HeatmapChart) -- [IgnoreDoc](#IgnoreDoc) -- [InteractData](#InteractData) -- [LayerHelper](#LayerHelper) -- [LegendContext](#LegendContext) -- [LegendHelper](#LegendHelper) -- [LegendItem](#LegendItem) -- [LineChart](#LineChart) -- [ListFor](#ListFor) -- [ListForComponent](#ListForComponent) -- [ListForSerie](#ListForSerie) -- [MainComponentContext](#MainComponentContext) -- [MainComponentHandler](#MainComponentHandler) -- [MainComponentHandler<T>](#MainComponentHandler<T>) -- [MathUtil](#MathUtil) -- [Painter](#Painter) -- [ParallelChart](#ParallelChart) -- [ParallelCoordContext](#ParallelCoordContext) -- [PieChart](#PieChart) -- [PolarChart](#PolarChart) -- [PolarCoordContext](#PolarCoordContext) -- [ProgressBar](#ProgressBar) -- [PropertyUtil](#PropertyUtil) -- [RadarChart](#RadarChart) -- [RadarCoordContext](#RadarCoordContext) -- [ReflectionUtil](#ReflectionUtil) -- [RequireChartComponentAttribute](#RequireChartComponentAttribute) -- [RingChart](#RingChart) -- [RuntimeUtil](#RuntimeUtil) -- [ScatterChart](#ScatterChart) -- [SerieContext](#SerieContext) -- [SerieConvertAttribute](#SerieConvertAttribute) -- [SerieDataContext](#SerieDataContext) -- [SerieDataExtraComponentAttribute](#SerieDataExtraComponentAttribute) -- [SerieDataExtraFieldAttribute](#SerieDataExtraFieldAttribute) -- [SerieExtraComponentAttribute](#SerieExtraComponentAttribute) -- [SerieHandler](#SerieHandler) -- [SerieHandler<T>](#SerieHandler<T>) -- [SerieHandlerAttribute](#SerieHandlerAttribute) -- [SerieHelper](#SerieHelper) -- [SerieLabelHelper](#SerieLabelHelper) -- [SerieLabelPool](#SerieLabelPool) -- [SerieParams](#SerieParams) -- [SeriesHelper](#SeriesHelper) -- [SimplifiedBarChart](#SimplifiedBarChart) -- [SimplifiedCandlestickChart](#SimplifiedCandlestickChart) -- [SimplifiedLineChart](#SimplifiedLineChart) -- [Since](#Since) -- [SVG](#SVG) -- [SVGImage](#SVGImage) -- [SVGPath](#SVGPath) -- [SVGPathSeg](#SVGPathSeg) -- [TooltipContext](#TooltipContext) -- [TooltipData](#TooltipData) -- [TooltipHelper](#TooltipHelper) -- [TooltipView](#TooltipView) -- [TooltipViewItem](#TooltipViewItem) -- [UGL](#UGL) -- [UGLExample](#UGLExample) -- [UGLHelper](#UGLHelper) -- [VisualMapContext](#VisualMapContext) -- [VisualMapHelper](#VisualMapHelper) -- [XChartsMgr](#XChartsMgr) -- [XCResourceImporterWindow](#XCResourceImporterWindow) -- [XCThemeMgr](#XCThemeMgr) +|||| +|--|--|--| +|[AnimationStyleHelper](#animationstylehelper)|[AxisContext](#axiscontext)|[AxisHandler<T>](#axishandlert)| +|[AxisHelper](#axishelper)|[BarChart](#barchart)|[BaseChart](#basechart)| +|[BaseGraph](#basegraph)|[CandlestickChart](#candlestickchart)|[ChartCached](#chartcached)| +|[ChartConst](#chartconst)|[ChartDrawer](#chartdrawer)|[ChartHelper](#charthelper)| +|[ChartLabel](#chartlabel)|[ChartObject](#chartobject)|[CheckHelper](#checkhelper)| +|[ColorUtil](#colorutil)|[ComponentHandlerAttribute](#componenthandlerattribute)|[ComponentHelper](#componenthelper)| +|[CoordOptionsAttribute](#coordoptionsattribute)|[DataZoomContext](#datazoomcontext)|[DataZoomHelper](#datazoomhelper)| +|[DateTimeUtil](#datetimeutil)|[DefaultAnimationAttribute](#defaultanimationattribute)|[DefineSymbolsUtil](#definesymbolsutil)| +|[FormatterHelper](#formatterhelper)|[GridCoordContext](#gridcoordcontext)|[HeatmapChart](#heatmapchart)| +|[IgnoreDoc](#ignoredoc)|[InteractData](#interactdata)|[LayerHelper](#layerhelper)| +|[LegendContext](#legendcontext)|[LegendHelper](#legendhelper)|[LegendItem](#legenditem)| +|[LineChart](#linechart)|[ListFor](#listfor)|[ListForComponent](#listforcomponent)| +|[ListForSerie](#listforserie)|[MainComponentContext](#maincomponentcontext)|[MainComponentHandler](#maincomponenthandler)| +|[MainComponentHandler<T>](#maincomponenthandlert)|[MathUtil](#mathutil)|[Painter](#painter)| +|[ParallelChart](#parallelchart)|[ParallelCoordContext](#parallelcoordcontext)|[PieChart](#piechart)| +|[PolarChart](#polarchart)|[PolarCoordContext](#polarcoordcontext)|[ProgressBar](#progressbar)| +|[PropertyUtil](#propertyutil)|[RadarChart](#radarchart)|[RadarCoordContext](#radarcoordcontext)| +|[ReflectionUtil](#reflectionutil)|[RequireChartComponentAttribute](#requirechartcomponentattribute)|[RingChart](#ringchart)| +|[RuntimeUtil](#runtimeutil)|[ScatterChart](#scatterchart)|[SerieContext](#seriecontext)| +|[SerieConvertAttribute](#serieconvertattribute)|[SerieDataContext](#seriedatacontext)|[SerieDataExtraComponentAttribute](#seriedataextracomponentattribute)| +|[SerieDataExtraFieldAttribute](#seriedataextrafieldattribute)|[SerieExtraComponentAttribute](#serieextracomponentattribute)|[SerieHandler](#seriehandler)| +|[SerieHandler<T>](#seriehandlert)|[SerieHandlerAttribute](#seriehandlerattribute)|[SerieHelper](#seriehelper)| +|[SerieLabelHelper](#serielabelhelper)|[SerieLabelPool](#serielabelpool)|[SerieParams](#serieparams)| +|[SeriesHelper](#serieshelper)|[SimplifiedBarChart](#simplifiedbarchart)|[SimplifiedCandlestickChart](#simplifiedcandlestickchart)| +|[SimplifiedLineChart](#simplifiedlinechart)|[Since](#since)|[SVG](#svg)| +|[SVGImage](#svgimage)|[SVGPath](#svgpath)|[SVGPathSeg](#svgpathseg)| +|[TooltipContext](#tooltipcontext)|[TooltipData](#tooltipdata)|[TooltipHelper](#tooltiphelper)| +|[TooltipView](#tooltipview)|[TooltipViewItem](#tooltipviewitem)|[UGL](#ugl)| +|[UGLExample](#uglexample)|[UGLHelper](#uglhelper)|[VisualMapContext](#visualmapcontext)| +|[VisualMapHelper](#visualmaphelper)|[XChartsMgr](#xchartsmgr)|[XCResourceImporterWindow](#xcresourceimporterwindow)| +|[XCThemeMgr](#xcthememgr)| ## AnimationStyleHelper @@ -109,11 +52,11 @@ ## AxisContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## AxisHandler<T> -Inherits or Implemented: [MainComponentHandler](#MainComponentHandler) +Inherits or Implemented: [MainComponentHandler](#maincomponenthandler) ## AxisHelper @@ -143,11 +86,11 @@ Inherits or Implemented: [MainComponentHandler](#MainComponentHandler) ## BarChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## BaseChart -Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver](#ISerializationCallbackReceiver) +Inherits or Implemented: [BaseGraph](#basegraph),[ISerializationCallbackReceiver](#iserializationcallbackreceiver) |public method|description| |--|--| @@ -172,7 +115,7 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver | AddYAxisData() |public void AddYAxisData(string category, int yAxisIndex = 0)
Add a category data to yAxis. | | AddYAxisIcon() |public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)
Add an icon to yAxis. | | AnimationEnable() |public void AnimationEnable(bool flag)
Whether series animation enabel. | -| AnimationFadeIn() |public void AnimationFadeIn()
fadeIn animation. | +| AnimationFadeIn() |public void AnimationFadeIn(bool reset = true)
fadeIn animation. | | AnimationFadeOut() |public void AnimationFadeOut()
fadeIn animation. | | AnimationPause() |public void AnimationPause()
Pause animation. | | AnimationReset() |public void AnimationReset()
Reset animation. | @@ -299,7 +242,6 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver | TryAddChartComponent<T>() |public bool TryAddChartComponent<T>() where T : MainComponent| | TryAddChartComponent<T>() |public bool TryAddChartComponent<T>(out T component) where T : MainComponent| | TryGetChartComponent<T>() |public bool TryGetChartComponent<T>(out T component, int index = 0)| -| UdpateXAxisIcon() |public void UdpateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)
Update xAxis icon. | | UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, double value)
Update serie data by serie index. | | UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | | UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | @@ -312,12 +254,13 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver | UpdateTheme() |public bool UpdateTheme(ThemeType theme)
Update chart theme. | | UpdateTheme() |public void UpdateTheme(Theme theme)
Update chart theme info. | | UpdateXAxisData() |public void UpdateXAxisData(int index, string category, int xAxisIndex = 0)
Update category data. | +| UpdateXAxisIcon() |public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)
Update xAxis icon. | | UpdateYAxisData() |public void UpdateYAxisData(int index, string category, int yAxisIndex = 0)
Update category data. | | UpdateYAxisIcon() |public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)
更新Y轴图标。 | ## BaseGraph -Inherits or Implemented: [MaskableGraphic](#MaskableGraphic),[IPointerDownHandler](#IPointerDownHandler),[IPointerUpHandler](#IPointerUpHandler),[](#) +Inherits or Implemented: [MaskableGraphic](#maskablegraphic),[IPointerDownHandler](#ipointerdownhandler),[IPointerUpHandler](#ipointeruphandler),[](#) |public method|description| |--|--| @@ -340,7 +283,7 @@ Inherits or Implemented: [MaskableGraphic](#MaskableGraphic),[IPointerDownHandle ## CandlestickChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## ChartCached @@ -423,7 +366,7 @@ Inherits or Implemented: [BaseChart](#BaseChart) ## ChartLabel -Inherits or Implemented: [Image](#Image) +Inherits or Implemented: [Image](#image) |public method|description| |--|--| @@ -469,7 +412,7 @@ Inherits or Implemented: [Image](#Image) ## ComponentHandlerAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -488,7 +431,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## CoordOptionsAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -500,7 +443,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## DataZoomContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## DataZoomHelper @@ -519,7 +462,7 @@ Inherits or Implemented: [MainComponentContext](#MainComponentContext) ## DefaultAnimationAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -544,15 +487,15 @@ Inherits or Implemented: [Attribute](#Attribute) ## GridCoordContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## HeatmapChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## IgnoreDoc -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -583,7 +526,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## LegendContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## LegendHelper @@ -621,11 +564,11 @@ Inherits or Implemented: [MainComponentContext](#MainComponentContext) ## LineChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## ListFor -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -633,7 +576,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## ListForComponent -Inherits or Implemented: [ListFor](#ListFor) +Inherits or Implemented: [ListFor](#listfor) |public method|description| |--|--| @@ -641,7 +584,7 @@ Inherits or Implemented: [ListFor](#ListFor) ## ListForSerie -Inherits or Implemented: [ListFor](#ListFor) +Inherits or Implemented: [ListFor](#listfor) |public method|description| |--|--| @@ -673,7 +616,7 @@ Inherits or Implemented: [ListFor](#ListFor) ## MainComponentHandler<T> -Inherits or Implemented: [MainComponentHandler](#MainComponentHandler) +Inherits or Implemented: [MainComponentHandler](#maincomponenthandler) ## MathUtil @@ -699,7 +642,7 @@ Inherits or Implemented: [new()](#new()) ## Painter -Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) +Inherits or Implemented: [MaskableGraphic](#maskablegraphic) |public method|description| |--|--| @@ -709,27 +652,27 @@ Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) ## ParallelChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## ParallelCoordContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## PieChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## PolarChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## PolarCoordContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## ProgressBar -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## PropertyUtil @@ -742,11 +685,11 @@ Inherits or Implemented: [BaseChart](#BaseChart) ## RadarChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## RadarCoordContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## ReflectionUtil @@ -761,7 +704,7 @@ Inherits or Implemented: [MainComponentContext](#MainComponentContext) ## RequireChartComponentAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -771,7 +714,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## RingChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## RuntimeUtil @@ -786,13 +729,13 @@ Inherits or Implemented: [BaseChart](#BaseChart) ## ScatterChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## SerieContext ## SerieConvertAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -811,7 +754,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## SerieDataExtraComponentAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -828,7 +771,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## SerieDataExtraFieldAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -844,7 +787,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## SerieExtraComponentAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -888,10 +831,11 @@ Inherits or Implemented: [Attribute](#Attribute) ## SerieHandler<T> -Inherits or Implemented: [SerieHandler where T](#SerieHandler where T),[Serie](#Serie) +Inherits or Implemented: [SerieHandler where T](#seriehandler where t),[Serie](#serie) |public method|description| |--|--| +| DrawLabelLineSymbol() |public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor)| | GetSerieDataAutoColor() |public virtual Color GetSerieDataAutoColor(SerieData serieData)| | GetSerieDataLabelOffset() |public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label)| | GetSerieDataLabelPosition() |public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)| @@ -908,7 +852,7 @@ Inherits or Implemented: [SerieHandler where T](#SerieHandler where T),[Serie](# ## SerieHandlerAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -998,19 +942,19 @@ Inherits or Implemented: [Attribute](#Attribute) ## SimplifiedBarChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## SimplifiedCandlestickChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## SimplifiedLineChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## Since -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -1026,7 +970,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## SVGImage -Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) +Inherits or Implemented: [MaskableGraphic](#maskablegraphic) ## SVGPath @@ -1051,7 +995,7 @@ Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) |public method|description| |--|--| | GetItemNumericFormatter() |public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)| -| GetLineColor() |public static Color32 GetLineColor(Tooltip tooltip, ThemeStyle theme)| +| GetLineColor() |public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor)| | IsIgnoreFormatter() |public static bool IsIgnoreFormatter(string itemFormatter)| | LimitInRect() |public static void LimitInRect(Tooltip tooltip, Rect chartRect)| @@ -1092,7 +1036,7 @@ Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) ## UGLExample -Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) +Inherits or Implemented: [MaskableGraphic](#maskablegraphic) ## UGLHelper @@ -1123,7 +1067,7 @@ Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) ## VisualMapContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## VisualMapHelper @@ -1157,7 +1101,7 @@ Inherits or Implemented: [MainComponentContext](#MainComponentContext) ## XCResourceImporterWindow -Inherits or Implemented: [UnityEditor.EditorWindow](#UnityEditor.EditorWindow) +Inherits or Implemented: [UnityEditor.EditorWindow](#unityeditor.editorwindow) |public method|description| |--|--| @@ -1182,6 +1126,3 @@ Inherits or Implemented: [UnityEditor.EditorWindow](#UnityEditor.EditorWindow) | ReloadThemeList() |public static void ReloadThemeList()
重新加载主题列表 | | SwitchTheme() |public static void SwitchTheme(BaseChart chart, string themeName)| -[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
-[XCharts Configuration](XChartsConfiguration-EN.md)
-[XCharts FAQ](XChartsFAQ-EN.md) diff --git a/Documentation/CHANGELOG.md b/Documentation~/en/changelog.md similarity index 92% rename from Documentation/CHANGELOG.md rename to Documentation~/en/changelog.md index 3c23fb42..e353fe6b 100644 --- a/Documentation/CHANGELOG.md +++ b/Documentation~/en/changelog.md @@ -2,67 +2,99 @@ # 更新日志 [master](#master) -[v3.4.0](#v3.4.0) -[v3.3.0](#v3.3.0) -[v3.2.0](#v3.2.0) -[v3.1.0](#v3.1.0) -[v3.0.1](#v3.0.1) -[v3.0.0](#v3.0.0) -[v3.0.0-preivew9](#v3.0.0-preivew9) -[v3.0.0-preivew8](#v3.0.0-preivew8) -[v3.0.0-preivew7](#v3.0.0-preivew7) -[v3.0.0-preivew6](#v3.0.0-preivew6) -[v3.0.0-preivew5](#v3.0.0-preivew5) -[v3.0.0-preivew4](#v3.0.0-preivew4) -[v3.0.0-preivew3](#v3.0.0-preivew3) -[v3.0.0-preivew2](#v3.0.0-preivew2) -[v3.0.0-preivew1](#v3.0.0-preivew1) -[v2.8.1](#v2.8.1) -[v2.8.0](#v2.8.0) -[v2.7.0](#v2.7.0) -[v2.6.0](#v2.6.0) -[v2.5.0](#v2.5.0) -[v2.4.0](#v2.4.0) -[v2.3.0](#v2.3.0) -[v2.2.3](#v2.2.3) -[v2.2.2](#v2.2.2) -[v2.2.1](#v2.2.1) -[v2.2.0](#v2.2.0) -[v2.1.1](#v2.1.1) -[v2.1.0](#v2.1.0) -[v2.0.1](#v2.0.1) -[v2.0.0](#v2.0.0) -[v2.0.0-preview.2](#v2.0.0-preview.2) -[v2.0.0-preview.1](#v2.0.0-preview.1) -[v1.6.3](#v1.6.3) -[v1.6.1](#v1.6.1) -[v1.6.0](#v1.6.0) -[v1.5.2](#v1.5.2) -[v1.5.1](#v1.5.1) -[v1.5.0](#v1.5.0) -[v1.4.0](#v1.4.0) -[v1.3.1](#v1.3.1) -[v1.3.0](#v1.3.0) -[v1.2.0](#v1.2.0) -[v1.1.0](#v1.1.0) -[v1.0.5](#v1.0.5) -[v1.0.4](#v1.0.4) -[v1.0.3](#v1.0.3) -[v1.0.2](#v1.0.2) -[v1.0.1](#v1.0.1) -[v1.0.0](#v1.0.0) -[v0.8.3](#v0.8.3) -[v0.8.2](#v0.8.2) -[v0.8.1](#v0.8.1) -[v0.8.0](#v0.8.0) -[v0.5.0](#v0.5.0) -[v0.1.0](#v0.1.0) +[v3.5.0](#v350) +[v3.4.0](#v340) +[v3.3.0](#v330) +[v3.2.0](#v320) +[v3.1.0](#v310) +[v3.0.1](#v301) +[v3.0.0](#v300) +[v3.0.0-preview9](#v300-preview9) +[v3.0.0-preview8](#v300-preview8) +[v3.0.0-preview7](#v300-preview7) +[v3.0.0-preview6](#v300-preview6) +[v3.0.0-preview5](#v300-preview5) +[v3.0.0-preview4](#v300-preview4) +[v3.0.0-preview3](#v300-preview3) +[v3.0.0-preview2](#v300-preview2) +[v3.0.0-preview1](#v300-preview1) +[v2.8.1](#v281) +[v2.8.0](#v280) +[v2.7.0](#v270) +[v2.6.0](#v260) +[v2.5.0](#v250) +[v2.4.0](#v240) +[v2.3.0](#v230) +[v2.2.3](#v223) +[v2.2.2](#v222) +[v2.2.1](#v221) +[v2.2.0](#v220) +[v2.1.1](#v211) +[v2.1.0](#v210) +[v2.0.1](#v201) +[v2.0.0](#v200) +[v2.0.0-preview.2](#v200-preview2) +[v2.0.0-preview.1](#v200-preview1) +[v1.6.3](#v163) +[v1.6.0](#v160) +[v1.5.2](#v152) +[v1.5.1](#v151) +[v1.5.0](#v150) +[v1.4.0](#v140) +[v1.3.1](#v131) +[v1.3.0](#v130) +[v1.2.0](#v120) +[v1.1.0](#v110) +[v1.0.5](#v105) +[v1.0.4](#v104) +[v1.0.3](#v103) +[v1.0.2](#v102) +[v1.0.1](#v101) +[v1.0.0](#v100) +[v0.8.3](#v083) +[v0.8.2](#v082) +[v0.8.1](#v081) +[v0.8.0](#v080) +[v0.5.0](#v050) +[v0.1.0](#v010) ## master +## v3.5.0 + +Highlights: + +* Updated documentation structure, added [Official XCharts Homepage](https://xcharts-team.github.io) +* Added support for the DataZoom box selected. +* Added support for maximum width Settings for bars. +* Other optimizations. + +Upgrade Note: + +* Due to the adjustment of the document directory structure, it is recommended to back up the files before upgrading and delete the original XCharts before upgrading them. + +Log details: + +* (2022.12.01) Release v3.5.0 +* (2022.11.30) Increase `Serie` `barMaxWidth` can set the maximum width of `Bar` +* (2022.11.30) Optimize `Tooltip`s` Shadow `drawing to stay within chart scope +* (2022.11.29) Fix an issue with `Serie` data item index exception indicated by `Tooltip` +* (2022.11.27) Optimizes the offset Settings for `Axis` `AxisName` +* (2022.11.27) Optimize the Position of `Comment` by replacing position with `Location` +* (2022.11.27) Optimizes` Tooltip ` `LineStyle` to support setting `Shadow` when using color +* (2022.11.27) Adjust the Documentation structure +* (2022.11.26) Optimizes LabelLine's `symbol` not to be displayed by default +* (2022.11.26) Fixed `LineChart` adding unordered data display exception when `XY` is numeric axis +* (2022.11.26) Fixed an exception when selecting `DataZoom` from right to left +* (2022.11.20) Rename `UdpateXAxisIcon()` interface to `UpdateXAxisIcon()` (#235) +* (2022.11.12) Added `Pie` `LabelLine` support `Symbol` +* (2022.11.12) added `DataZoom` `MarqueeStyle` support box selection area +* (2022.11.10) Optimized area color fill effect for `Radar` when type is` Single ` +* (2022.11.04) Fixed exception after itemFormatter `Tooltip` set wildcard `{d}` + ## v3.4.0 -### Highlights +Highlights: * Added `indicatorLabel` of `Axis` to set different indicator text styles separately * Add `markColor` of `Serie` to set the logo color @@ -71,7 +103,7 @@ * Added `DataZoom` support for numeric axes * Add `SmoothLimit` of `Line` to control different effects of smoothing curves -### Details +Details: * (2022.11.01) Release `v3.4.0` version * (2022.10.30) adds API: `AddData()`, `ClearSerieData()`, `ClearComponentData()` @@ -86,14 +118,14 @@ * (2022.10.13) Fixed the `Pie` circle with abnormal border Settings (#225) * (2022.10.13) Fixed the `Download` interface causing the `iOS` platform packaging failure * (2022.10.12) Added support for `Animation` `UnscaledTime` to set whether the animation is affected by TimeScale (#223) -* (2022.10.10) Optimizes the `Documentation` format +* (2022.10.10) Optimizes the `Documentation~` format * (2022.10.10) Add `Line` `SmoothLimit` to control different effects of smoothing curves * (2022.10.05) Fixed an issue where `Serie` hid information when `Tooltip` was also displayed * (2022.09.30) Fixed `DivideByZeroException` when Chart `is very small (#230) ## v3.3.0 -### Highlights +Highlights: * Optimized chart details to support more functions * Add lots of Demo examples @@ -102,7 +134,7 @@ * Added a HeatmapChart type * Improved Tooltip display -### Details +Details: * (2022.09.26) Optimizes the default number of segments for `Axis` at the category Axis * (2022.09.25) Fixed the problem that some interfaces in the `API` document were not exported @@ -141,7 +173,7 @@ ## v3.2.0 -### Highlights +Highlights: * `Serie` supports highlighting, EmphasisStyle, EmphasisStyle, BlurStyle, and SelectStyle * `Axis` supports sub-scale and sub-partition of coordinate axes:`MinorTick` and `MinorSplitLine` @@ -151,7 +183,7 @@ * `DataZoom` supports timeline * Other optimizations and issue fixes -### Details +Details: * (2022.08.16) Release `v3.2.0` version * (2022.08.15) optimized `Smooth` Bezier curve algorithm @@ -240,23 +272,30 @@ * Added `Widgets`. * Added multiple extension charts. -## v3.0.0_preview9 +## v3.0.0-preview9 -## v3.0.0_preview8 +## v3.0.0-preview8 -## v3.0.0_preview7 +## v3.0.0-preview7 -## v3.0.0_preview6 +## v3.0.0-preview6 -## v3.0.0_preview5 +## v3.0.0-preview5 -## v3.0.0_preview4 +## v3.0.0-preview4 -## v3.0.0_preview3 +## v3.0.0-preview3 -## v3.0.0_preview2 +## v3.0.0-preview2 -## v3.0.0_preview1 +## v3.0.0-preview1 + +## v2.8.2 + +* (2022.08.15) Release `v2.8.2` version +* (2022.08.15) Added support for the `HeatmapChart` formatter for custom Tooltip +* (2022.07.13) Fixed `SerieLabel` refresh exception #215 +* (2022.06.30) Optimize `Radar` so that the `Tooltip` layer is above `Indicator` ## v2.8.1 @@ -306,13 +345,13 @@ ## v2.4.0 -### Highlights +Highlights: * LineChart support the line of ignore data is disconnected or connected * LineChart support animation at a constant speed * Other optimizations and bug fixes -### Details +Details: * (2021.08.31) Release `v2.4.0` version * (2021.08.31) Optimized the gradient effect of `RingChart` @@ -331,7 +370,7 @@ ## v2.3.0 -### Highlights +Highlights: * Data store upgraded from `float` to `double` * Added `MarkLine` @@ -341,11 +380,11 @@ * `PieChart` optimization * Problem fixes -### Upgrade Note +Upgrade Note: -Since the data type is upgraded to `double`, the implicit conversion of `float` to `double` may have precision problems, so it is recommended that all previous data types of `float` be manually changed to `double`. +* Since the data type is upgraded to `double`, the implicit conversion of `float` to `double` may have precision problems, so it is recommended that all previous data types of `float` be manually changed to `double`. -### Details +Details: * (2021.07.24) Release `v2.3.0` version * (2021.07.22) Improved `SerieSymbol` to support `PictorialBarchart` extension @@ -363,7 +402,7 @@ Since the data type is upgraded to `double`, the implicit conversion of `float` * (2021.06.27) Added `DataZoom`'s `orient` parameter to set horizontal or vertical styles * (2021.06.21) Added `iconStyle`'s `AutoHideWhenLabelEmpty` to set whether the icon is automatically hidden when `label` is empty -# # v2.2.3 +## v2.2.3 * (2021.06.20) Release `v2.2.3` version * (2021.06.20) Fixed the default display of `Icon` in `Axis` @@ -496,7 +535,7 @@ Since the data type is upgraded to `double`, the implicit conversion of `float` ## v1.6.0 * (2020.08.24) Release `v1.6.0` version -* (2020.08.23) Refactor code, replace `Color` with `Color32` for reduce implicit conversion (Can cause custom colors to lose, reference [FAQ 29](https://github.com/XCharts-Team/XCharts/blob/master/Assets/XCharts/Documentation/XChartsFAQ-ZH.md) to upgrade) +* (2020.08.23) Refactor code, replace `Color` with `Color32` for reduce implicit conversion (Can cause custom colors to lose, reference [FAQ 29](https://github.com/XCharts-Team/XCharts/blob/master/Assets/XCharts/Documentation~/fqa.md) to upgrade) * (2020.08.15) Optimized `PieChart` drawing performance effect #85 * (2020.08.11) Added `LiquidChart` data change animation#83 * (2020.08.11) Optimized `PieChart` text stack and lead line effects#85 diff --git a/Documentation/XChartsConfiguration-EN.md b/Documentation~/en/configuration.md similarity index 77% rename from Documentation/XChartsConfiguration-EN.md rename to Documentation~/en/configuration.md index 3c3393fc..8c744ced 100644 --- a/Documentation/XChartsConfiguration-EN.md +++ b/Documentation~/en/configuration.md @@ -1,175 +1,86 @@ -# Chart Configuration +--- +sidebar_position: 2 +slug: /configuration +--- -[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
-[XCharts API](XChartsAPI-EN.md)
-[XCharts FAQ](XChartsFAQ-EN.md) +# Chart Configuration ## Serie -- [Bar](#Bar) -- [BaseScatter](#BaseScatter) -- [Candlestick](#Candlestick) -- [EffectScatter](#EffectScatter) -- [Heatmap](#Heatmap) -- [Line](#Line) -- [Parallel](#Parallel) -- [Pie](#Pie) -- [Radar](#Radar) -- [Ring](#Ring) -- [Scatter](#Scatter) -- [Serie](#Serie) -- [SimplifiedBar](#SimplifiedBar) -- [SimplifiedCandlestick](#SimplifiedCandlestick) -- [SimplifiedLine](#SimplifiedLine) +||||| +|--|--|--|--| +|[Bar](#bar)|[BaseScatter](#basescatter)|[Candlestick](#candlestick)|[EffectScatter](#effectscatter)| +|[Heatmap](#heatmap)|[Line](#line)|[Parallel](#parallel)|[Pie](#pie)| +|[Radar](#radar)|[Ring](#ring)|[Scatter](#scatter)|[Serie](#serie)| +|[SimplifiedBar](#simplifiedbar)|[SimplifiedCandlestick](#simplifiedcandlestick)|[SimplifiedLine](#simplifiedline)| ## Theme -- [AngleAxisTheme](#AngleAxisTheme) -- [AxisTheme](#AxisTheme) -- [BaseAxisTheme](#BaseAxisTheme) -- [ComponentTheme](#ComponentTheme) -- [DataZoomTheme](#DataZoomTheme) -- [LegendTheme](#LegendTheme) -- [PolarAxisTheme](#PolarAxisTheme) -- [RadarAxisTheme](#RadarAxisTheme) -- [RadiusAxisTheme](#RadiusAxisTheme) -- [SerieTheme](#SerieTheme) -- [SubTitleTheme](#SubTitleTheme) -- [Theme](#Theme) -- [ThemeStyle](#ThemeStyle) -- [TitleTheme](#TitleTheme) -- [TooltipTheme](#TooltipTheme) -- [VisualMapTheme](#VisualMapTheme) +||||| +|--|--|--|--| +|[AngleAxisTheme](#angleaxistheme)|[AxisTheme](#axistheme)|[BaseAxisTheme](#baseaxistheme)|[ComponentTheme](#componenttheme)| +|[DataZoomTheme](#datazoomtheme)|[LegendTheme](#legendtheme)|[PolarAxisTheme](#polaraxistheme)|[RadarAxisTheme](#radaraxistheme)| +|[RadiusAxisTheme](#radiusaxistheme)|[SerieTheme](#serietheme)|[SubTitleTheme](#subtitletheme)|[Theme](#theme)| +|[ThemeStyle](#themestyle)|[TitleTheme](#titletheme)|[TooltipTheme](#tooltiptheme)|[VisualMapTheme](#visualmaptheme)| ## MainComponent -- [AngleAxis](#AngleAxis) -- [Axis](#Axis) -- [Background](#Background) -- [CalendarCoord](#CalendarCoord) -- [Comment](#Comment) -- [CoordSystem](#CoordSystem) -- [DataZoom](#DataZoom) -- [GridCoord](#GridCoord) -- [Legend](#Legend) -- [MarkArea](#MarkArea) -- [MarkLine](#MarkLine) -- [ParallelAxis](#ParallelAxis) -- [ParallelCoord](#ParallelCoord) -- [PolarCoord](#PolarCoord) -- [RadarCoord](#RadarCoord) -- [RadiusAxis](#RadiusAxis) -- [Settings](#Settings) -- [SingleAxis](#SingleAxis) -- [SingleAxisCoord](#SingleAxisCoord) -- [Title](#Title) -- [Tooltip](#Tooltip) -- [VisualMap](#VisualMap) -- [XAxis](#XAxis) -- [YAxis](#YAxis) +||||| +|--|--|--|--| +|[AngleAxis](#angleaxis)|[Axis](#axis)|[Background](#background)|[CalendarCoord](#calendarcoord)| +|[Comment](#comment)|[CoordSystem](#coordsystem)|[DataZoom](#datazoom)|[GridCoord](#gridcoord)| +|[Legend](#legend)|[MarkArea](#markarea)|[MarkLine](#markline)|[ParallelAxis](#parallelaxis)| +|[ParallelCoord](#parallelcoord)|[PolarCoord](#polarcoord)|[RadarCoord](#radarcoord)|[RadiusAxis](#radiusaxis)| +|[Settings](#settings)|[SingleAxis](#singleaxis)|[SingleAxisCoord](#singleaxiscoord)|[Title](#title)| +|[Tooltip](#tooltip)|[VisualMap](#visualmap)|[XAxis](#xaxis)|[YAxis](#yaxis)| ## ChildComponent -- [AngleAxisTheme](#AngleAxisTheme) -- [AnimationStyle](#AnimationStyle) -- [AreaStyle](#AreaStyle) -- [ArrowStyle](#ArrowStyle) -- [AxisLabel](#AxisLabel) -- [AxisLine](#AxisLine) -- [AxisMinorSplitLine](#AxisMinorSplitLine) -- [AxisMinorTick](#AxisMinorTick) -- [AxisName](#AxisName) -- [AxisSplitArea](#AxisSplitArea) -- [AxisSplitLine](#AxisSplitLine) -- [AxisTheme](#AxisTheme) -- [AxisTick](#AxisTick) -- [BaseAxisTheme](#BaseAxisTheme) -- [BaseLine](#BaseLine) -- [BlurStyle](#BlurStyle) -- [CommentItem](#CommentItem) -- [CommentMarkStyle](#CommentMarkStyle) -- [ComponentTheme](#ComponentTheme) -- [DataZoomTheme](#DataZoomTheme) -- [EmphasisStyle](#EmphasisStyle) -- [EndLabelStyle](#EndLabelStyle) -- [IconStyle](#IconStyle) -- [ImageStyle](#ImageStyle) -- [ItemStyle](#ItemStyle) -- [LabelLine](#LabelLine) -- [LabelStyle](#LabelStyle) -- [LegendTheme](#LegendTheme) -- [Level](#Level) -- [LevelStyle](#LevelStyle) -- [LineArrow](#LineArrow) -- [LineStyle](#LineStyle) -- [Location](#Location) -- [MarkAreaData](#MarkAreaData) -- [MarkLineData](#MarkLineData) -- [Padding](#Padding) -- [PolarAxisTheme](#PolarAxisTheme) -- [RadarAxisTheme](#RadarAxisTheme) -- [RadiusAxisTheme](#RadiusAxisTheme) -- [SelectStyle](#SelectStyle) -- [SerieData](#SerieData) -- [SerieSymbol](#SerieSymbol) -- [SerieTheme](#SerieTheme) -- [StageColor](#StageColor) -- [StateStyle](#StateStyle) -- [SubTitleTheme](#SubTitleTheme) -- [SymbolStyle](#SymbolStyle) -- [TextLimit](#TextLimit) -- [TextPadding](#TextPadding) -- [TextStyle](#TextStyle) -- [ThemeStyle](#ThemeStyle) -- [TitleStyle](#TitleStyle) -- [TitleTheme](#TitleTheme) -- [TooltipTheme](#TooltipTheme) -- [VisualMapRange](#VisualMapRange) -- [VisualMapTheme](#VisualMapTheme) +||||| +|--|--|--|--| +|[AngleAxisTheme](#angleaxistheme)|[AnimationStyle](#animationstyle)|[AreaStyle](#areastyle)|[ArrowStyle](#arrowstyle)| +|[AxisLabel](#axislabel)|[AxisLine](#axisline)|[AxisMinorSplitLine](#axisminorsplitline)|[AxisMinorTick](#axisminortick)| +|[AxisName](#axisname)|[AxisSplitArea](#axissplitarea)|[AxisSplitLine](#axissplitline)|[AxisTheme](#axistheme)| +|[AxisTick](#axistick)|[BaseAxisTheme](#baseaxistheme)|[BaseLine](#baseline)|[BlurStyle](#blurstyle)| +|[CommentItem](#commentitem)|[CommentMarkStyle](#commentmarkstyle)|[ComponentTheme](#componenttheme)|[DataZoomTheme](#datazoomtheme)| +|[EmphasisStyle](#emphasisstyle)|[EndLabelStyle](#endlabelstyle)|[IconStyle](#iconstyle)|[ImageStyle](#imagestyle)| +|[ItemStyle](#itemstyle)|[LabelLine](#labelline)|[LabelStyle](#labelstyle)|[LegendTheme](#legendtheme)| +|[Level](#level)|[LevelStyle](#levelstyle)|[LineArrow](#linearrow)|[LineStyle](#linestyle)| +|[Location](#location)|[MarkAreaData](#markareadata)|[MarkLineData](#marklinedata)|[MarqueeStyle](#marqueestyle)| +|[Padding](#padding)|[PolarAxisTheme](#polaraxistheme)|[RadarAxisTheme](#radaraxistheme)|[RadiusAxisTheme](#radiusaxistheme)| +|[SelectStyle](#selectstyle)|[SerieData](#seriedata)|[SerieSymbol](#seriesymbol)|[SerieTheme](#serietheme)| +|[StageColor](#stagecolor)|[StateStyle](#statestyle)|[SubTitleTheme](#subtitletheme)|[SymbolStyle](#symbolstyle)| +|[TextLimit](#textlimit)|[TextPadding](#textpadding)|[TextStyle](#textstyle)|[ThemeStyle](#themestyle)| +|[TitleStyle](#titlestyle)|[TitleTheme](#titletheme)|[TooltipTheme](#tooltiptheme)|[VisualMapRange](#visualmaprange)| +|[VisualMapTheme](#visualmaptheme)| ## ISerieExtraComponent -- [AreaStyle](#AreaStyle) -- [BlurStyle](#BlurStyle) -- [EmphasisStyle](#EmphasisStyle) -- [ImageStyle](#ImageStyle) -- [LabelLine](#LabelLine) -- [LabelStyle](#LabelStyle) -- [LineArrow](#LineArrow) -- [SelectStyle](#SelectStyle) -- [TitleStyle](#TitleStyle) +||||| +|--|--|--|--| +|[AreaStyle](#areastyle)|[BlurStyle](#blurstyle)|[EmphasisStyle](#emphasisstyle)|[ImageStyle](#imagestyle)| +|[LabelLine](#labelline)|[LabelStyle](#labelstyle)|[LineArrow](#linearrow)|[SelectStyle](#selectstyle)| +|[TitleStyle](#titlestyle)| ## ISerieDataComponent -- [AreaStyle](#AreaStyle) -- [BlurStyle](#BlurStyle) -- [EmphasisStyle](#EmphasisStyle) -- [ImageStyle](#ImageStyle) -- [ItemStyle](#ItemStyle) -- [LabelLine](#LabelLine) -- [LabelStyle](#LabelStyle) -- [LineStyle](#LineStyle) -- [SelectStyle](#SelectStyle) -- [SerieSymbol](#SerieSymbol) -- [TitleStyle](#TitleStyle) +||||| +|--|--|--|--| +|[AreaStyle](#areastyle)|[BlurStyle](#blurstyle)|[EmphasisStyle](#emphasisstyle)|[ImageStyle](#imagestyle)| +|[ItemStyle](#itemstyle)|[LabelLine](#labelline)|[LabelStyle](#labelstyle)|[LineStyle](#linestyle)| +|[SelectStyle](#selectstyle)|[SerieSymbol](#seriesymbol)|[TitleStyle](#titlestyle)| -## Other +## Other Component -- [BaseSerie](#BaseSerie) -- [ChartText](#ChartText) -- [ChildComponent](#ChildComponent) -- [DebugInfo](#DebugInfo) -- [Indicator](#Indicator) -- [Lang](#Lang) -- [LangCandlestick](#LangCandlestick) -- [LangTime](#LangTime) -- [MainComponent](#MainComponent) -- [XCResourcesImporter](#XCResourcesImporter) -- [XCSettings](#XCSettings) +||||| +|--|--|--|--| +|[BaseSerie](#baseserie)|[ChartText](#charttext)|[ChildComponent](#childcomponent)|[DebugInfo](#debuginfo)| +|[Indicator](#indicator)|[Lang](#lang)|[LangCandlestick](#langcandlestick)|[LangTime](#langtime)| +|[MainComponent](#maincomponent)|[XCResourcesImporter](#xcresourcesimporter)|[XCSettings](#xcsettings)| ## AngleAxis -Inherits or Implemented: [Axis](#Axis) +Inherits or Implemented: [Axis](#axis) Angle axis of Polar Coordinate. @@ -179,12 +90,12 @@ Angle axis of Polar Coordinate. ## AngleAxisTheme -Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) +Inherits or Implemented: [BaseAxisTheme](#baseaxistheme) ## AnimationStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) the animation of serie. @@ -205,7 +116,7 @@ the animation of serie. ## AreaStyle -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) The style of area. @@ -220,7 +131,7 @@ The style of area. ## ArrowStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -232,7 +143,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## Axis -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) The axis in rectangular coordinate. @@ -260,19 +171,19 @@ The axis in rectangular coordinate. |insertDataToHead|||Whether to add new data at the head or at the end of the list. |icons|||类目数据对应的图标。 |data|||Category data, available in type: 'Category' axis. -|axisLine|||axis Line. [AxisLine](#AxisLine)| -|axisName|||axis name. [AxisName](#AxisName)| -|axisTick|||axis tick. [AxisTick](#AxisTick)| -|axisLabel|||axis label. [AxisLabel](#AxisLabel)| -|splitLine|||axis split line. [AxisSplitLine](#AxisSplitLine)| -|splitArea|||axis split area. [AxisSplitArea](#AxisSplitArea)| -|minorTick||v3.2.0|axis minor tick. [AxisMinorTick](#AxisMinorTick)| -|minorSplitLine||v3.2.0|axis minor split line. [AxisMinorSplitLine](#AxisMinorSplitLine)| -|indicatorLabel||v3.4.0|Style of axis tooltip indicator label. [LabelStyle](#LabelStyle)| +|axisLine|||axis Line. [AxisLine](#axisline)| +|axisName|||axis name. [AxisName](#axisname)| +|axisTick|||axis tick. [AxisTick](#axistick)| +|axisLabel|||axis label. [AxisLabel](#axislabel)| +|splitLine|||axis split line. [AxisSplitLine](#axissplitline)| +|splitArea|||axis split area. [AxisSplitArea](#axissplitarea)| +|minorTick||v3.2.0|axis minor tick. [AxisMinorTick](#axisminortick)| +|minorSplitLine||v3.2.0|axis minor split line. [AxisMinorSplitLine](#axisminorsplitline)| +|indicatorLabel||v3.4.0|Style of axis tooltip indicator label. [LabelStyle](#labelstyle)| ## AxisLabel -Inherits or Implemented: [LabelStyle](#LabelStyle) +Inherits or Implemented: [LabelStyle](#labelstyle) Settings related to axis label. @@ -284,11 +195,11 @@ Settings related to axis label. |onZero|false||刻度标签显示在0刻度上。 |showStartLabel|true||Whether to display the first label. |showEndLabel|true||Whether to display the last label. -|textLimit|||文本限制。 [TextLimit](#TextLimit)| +|textLimit|||文本限制。 [TextLimit](#textlimit)| ## AxisLine -Inherits or Implemented: [BaseLine](#BaseLine) +Inherits or Implemented: [BaseLine](#baseline) Settings related to axis line. @@ -296,11 +207,11 @@ Settings related to axis line. |--|--|--|--| |onZero|||When mutiple axes exists, this option can be used to specify which axis can be "onZero" to. |showArrow|||Whether to show the arrow symbol of axis. -|arrow|||the arrow of line. [ArrowStyle](#ArrowStyle)| +|arrow|||the arrow of line. [ArrowStyle](#arrowstyle)| ## AxisMinorSplitLine -Inherits or Implemented: [BaseLine](#BaseLine) +Inherits or Implemented: [BaseLine](#baseline) > Since `v3.2.0` @@ -313,7 +224,7 @@ Minor split line of axis in grid area. ## AxisMinorTick -Inherits or Implemented: [BaseLine](#BaseLine) +Inherits or Implemented: [BaseLine](#baseline) > Since `v3.2.0` @@ -326,7 +237,7 @@ Settings related to axis minor tick. ## AxisName -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) the name of axis. @@ -335,11 +246,11 @@ the name of axis. |show|||Whether to show axis name. |name|||the name of axis. |onZero||v3.1.0|Whether the axis name position are the same with 0 position of YAxis. -|labelStyle|||The text style of axis name. [LabelStyle](#LabelStyle)| +|labelStyle|||The text style of axis name. [LabelStyle](#labelstyle)| ## AxisSplitArea -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) Split area of axis in grid area, not shown by default. @@ -350,7 +261,7 @@ Split area of axis in grid area, not shown by default. ## AxisSplitLine -Inherits or Implemented: [BaseLine](#BaseLine) +Inherits or Implemented: [BaseLine](#baseline) Split line of axis in grid area. @@ -364,12 +275,12 @@ Split line of axis in grid area. ## AxisTheme -Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) +Inherits or Implemented: [BaseAxisTheme](#baseaxistheme) ## AxisTick -Inherits or Implemented: [BaseLine](#BaseLine) +Inherits or Implemented: [BaseLine](#baseline) Settings related to axis tick. @@ -385,7 +296,7 @@ Settings related to axis tick. ## Background -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) Background component. @@ -399,12 +310,12 @@ Background component. ## Bar -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) ## BaseAxisTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) |field|default|since|comment| |--|--|--|--| @@ -424,18 +335,18 @@ Inherits or Implemented: [ComponentTheme](#ComponentTheme) ## BaseLine -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) Settings related to base line. |field|default|since|comment| |--|--|--|--| |show|||Set this to false to prevent the axis line from showing. -|lineStyle|||线条样式 [LineStyle](#LineStyle)| +|lineStyle|||线条样式 [LineStyle](#linestyle)| ## BaseScatter -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) ## BaseSerie @@ -443,7 +354,7 @@ Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContai ## BlurStyle -Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [StateStyle](#statestyle),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) > Since `v3.2.0` @@ -452,12 +363,12 @@ Configurations of blur state. ## CalendarCoord -Inherits or Implemented: [CoordSystem](#CoordSystem),[IUpdateRuntimeData](#IUpdateRuntimeData),[ISerieContainer](#ISerieContainer) +Inherits or Implemented: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) ## Candlestick -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) ## ChartText @@ -468,20 +379,20 @@ Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContai ## Comment -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) comment of chart. |field|default|since|comment| |--|--|--|--| |show|true||Set this to false to prevent the comment from showing. -|labelStyle|||The text style of all comments. [LabelStyle](#LabelStyle)| -|markStyle|||The text style of all comments. [CommentMarkStyle](#CommentMarkStyle)| +|labelStyle|||The text style of all comments. [LabelStyle](#labelstyle)| +|markStyle|||The text style of all comments. [CommentMarkStyle](#commentmarkstyle)| |items|||The items of comment. ## CommentItem -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) comment of chart. @@ -489,25 +400,25 @@ comment of chart. |--|--|--|--| |show|true||Set this to false to prevent this comment item from showing. |content|||content of comment. -|position|||position of comment. |markRect|||the mark rect of comment. -|markStyle|||the mark rect style. [CommentMarkStyle](#CommentMarkStyle)| -|labelStyle|||The text style of all comments. [LabelStyle](#LabelStyle)| +|markStyle|||the mark rect style. [CommentMarkStyle](#commentmarkstyle)| +|labelStyle|||The text style of all comments. [LabelStyle](#labelstyle)| +|location||v3.5.0|The location of comment. [Location](#location)| ## CommentMarkStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) the comment mark style. |field|default|since|comment| |--|--|--|--| |show|true||Set this to false to prevent this comment item from showing. -|lineStyle|||line style of comment mark area. [LineStyle](#LineStyle)| +|lineStyle|||line style of comment mark area. [LineStyle](#linestyle)| ## ComponentTheme -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -519,14 +430,14 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## CoordSystem -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) Coordinate system component. ## DataZoom -Inherits or Implemented: [MainComponent](#MainComponent),[IUpdateRuntimeData](#IUpdateRuntimeData) +Inherits or Implemented: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata) DataZoom component is used for zooming a specific area, which enables user to investigate data in detail, or get an overview of the data, or get rid of outlier points. @@ -537,10 +448,10 @@ DataZoom component is used for zooming a specific area, which enables user to in |xAxisIndexs|||Specify which xAxis is controlled by the dataZoom. |yAxisIndexs|||Specify which yAxis is controlled by the dataZoom. |supportInside|||Whether built-in support is supported. Built into the coordinate system to allow the user to zoom in and out of the coordinate system by mouse dragging, mouse wheel, finger swiping (on the touch screen). -|supportInsideScroll|true||是否支持坐标系内滚动 -|supportInsideDrag|true||是否支持坐标系内拖拽 +|supportInsideScroll|true||Whether inside scrolling is supported. +|supportInsideDrag|true||Whether insde drag is supported. |supportSlider|||Whether a slider is supported. There are separate sliders on which the user zooms or roams. -|supportSelect|||是否支持框选。提供一个选框进行数据区域缩放。 +|supportMarquee|||Supported Box Selected. Provides a marquee for scaling the data area. |showDataShadow|||Whether to show data shadow, to indicate the data tendency in brief. |showDetail|||Whether to show detail, that is, show the detailed data information when dragging. |zoomLock|||Specify whether to lock the size of window (selected area). @@ -558,13 +469,14 @@ DataZoom component is used for zooming a specific area, which enables user to in |minShowNum|1||Minimum number of display data. Minimum number of data displayed when DataZoom is enlarged to maximum. |scrollSensitivity|1.1f||The sensitivity of dataZoom scroll. The larger the number, the more sensitive it is. |orient|||Specify whether the layout of dataZoom component is horizontal or vertical. What's more, it indicates whether the horizontal axis or vertical axis is controlled by default in catesian coordinate system.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|labelStyle|||label style. [LabelStyle](#LabelStyle)| -|lineStyle|||阴影线条样式。 [LineStyle](#LineStyle)| -|areaStyle|||阴影填充样式。 [AreaStyle](#AreaStyle)| +|labelStyle|||label style. [LabelStyle](#labelstyle)| +|lineStyle|||阴影线条样式。 [LineStyle](#linestyle)| +|areaStyle|||阴影填充样式。 [AreaStyle](#areastyle)| +|marqueeStyle||v3.5.0|选取框样式。 [MarqueeStyle](#marqueestyle)| ## DataZoomTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) |field|default|since|comment| |--|--|--|--| @@ -584,16 +496,16 @@ Inherits or Implemented: [ComponentTheme](#ComponentTheme) |showDebugInfo|false|| |showAllChartObject|false||Whether show children components of chart in hierarchy view. |foldSeries|false||Whether to fold series in inspector view. -|labelStyle||| [LabelStyle](#LabelStyle)| +|labelStyle||| [LabelStyle](#labelstyle)| ## EffectScatter -Inherits or Implemented: [BaseScatter](#BaseScatter) +Inherits or Implemented: [BaseScatter](#basescatter) ## EmphasisStyle -Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [StateStyle](#statestyle),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) > Since `v3.2.0` @@ -607,12 +519,12 @@ Configurations of emphasis state. ## EndLabelStyle -Inherits or Implemented: [LabelStyle](#LabelStyle) +Inherits or Implemented: [LabelStyle](#labelstyle) ## GridCoord -Inherits or Implemented: [CoordSystem](#CoordSystem),[IUpdateRuntimeData](#IUpdateRuntimeData),[ISerieContainer](#ISerieContainer) +Inherits or Implemented: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) Grid component. @@ -630,7 +542,7 @@ Grid component. ## Heatmap -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) |field|default|since|comment| |--|--|--|--| @@ -638,7 +550,7 @@ Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContai ## IconStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -655,7 +567,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## ImageStyle -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) |field|default|since|comment| |--|--|--|--| @@ -682,10 +594,10 @@ Indicator of radar chart, which is used to assign multiple variables(dimensions) |radius|100||the radius of radar. |splitNumber|5||Segments of indicator axis. |center|||the center of radar chart. -|axisLine|||axis line. [AxisLine](#AxisLine)| -|axisName|||Name options for radar indicators. [AxisName](#AxisName)| -|splitLine|||split line. [AxisSplitLine](#AxisSplitLine)| -|splitArea|||Split area of axis in grid area. [AxisSplitArea](#AxisSplitArea)| +|axisLine|||axis line. [AxisLine](#axisline)| +|axisName|||Name options for radar indicators. [AxisName](#axisname)| +|splitLine|||split line. [AxisSplitLine](#axissplitline)| +|splitArea|||Split area of axis in grid area. [AxisSplitArea](#axissplitarea)| |indicator|true||Whether to show indicator. |positionType|||The position type of indicator. |indicatorGap|10||The gap of indicator and radar. @@ -699,7 +611,7 @@ Indicator of radar chart, which is used to assign multiple variables(dimensions) ## ItemStyle -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent) 图形样式。 @@ -727,7 +639,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent] ## LabelLine -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) 标签的引导线 @@ -741,12 +653,12 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent |lineGap|1.0f||the gap of container and guild line. |lineLength1|25f||The length of the first segment of visual guide line. |lineLength2|15f||The length of the second segment of visual guide line. -|startSymbol|||The symbol of the start point of labelline. [SymbolStyle](#SymbolStyle)| -|endSymbol|||The symbol of the end point of labelline. [SymbolStyle](#SymbolStyle)| +|startSymbol|||The symbol of the start point of labelline. [SymbolStyle](#symbolstyle)| +|endSymbol|||The symbol of the end point of labelline. [SymbolStyle](#symbolstyle)| ## LabelStyle -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) Text label of chart, to explain some data information about graphic item like value, name and so on. @@ -762,14 +674,14 @@ Text label of chart, to explain some data information about graphic item like va |numericFormatter|||Standard numeric format strings. |width|0||the width of label. If set as default value 0, it means than the label width auto set as the text width. |height|0||the height of label. If set as default value 0, it means than the label height auto set as the text height. -|icon|||the sytle of icon. [IconStyle](#IconStyle)| -|background|||the sytle of background. [ImageStyle](#ImageStyle)| -|textPadding|||the text padding of label. [TextPadding](#TextPadding)| -|textStyle|||the sytle of text. [TextStyle](#TextStyle)| +|icon|||the sytle of icon. [IconStyle](#iconstyle)| +|background|||the sytle of background. [ImageStyle](#imagestyle)| +|textPadding|||the text padding of label. [TextPadding](#textpadding)| +|textStyle|||the sytle of text. [TextStyle](#textstyle)| ## Lang -Inherits or Implemented: [ScriptableObject](#ScriptableObject) +Inherits or Implemented: [ScriptableObject](#scriptableobject) Language. @@ -782,7 +694,7 @@ Language. ## Legend -Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPropertyChanged) +Inherits or Implemented: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) Legend component.The legend component shows different sets of tags, colors, and names. You can control which series are not displayed by clicking on the legend. @@ -792,7 +704,7 @@ Legend component.The legend component shows different sets of tags, colors, and |iconType|||Type of legend.
`Legend.Type`:
- `Auto`: 自动匹配。
- `Custom`: 自定义图标。
- `EmptyCircle`: 空心圆。
- `Circle`: 圆形。
- `Rect`: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。
- `Triangle`: 三角形。
- `Diamond`: 菱形。
- `Candlestick`: 烛台(可用于K线图)。
| |selectedMode|||Selected mode of legend, which controls whether series can be toggled displaying by clicking legends.
`Legend.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
- `None`: 无法选择。
| |orient|||Specify whether the layout of legend component is horizontal or vertical.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|location|||The location of legend. [Location](#Location)| +|location|||The location of legend. [Location](#location)| |itemWidth|25.0f||Image width of legend symbol. |itemHeight|12.0f||Image height of legend symbol. |itemGap|10f||The distance between each legend, horizontal distance in horizontal layout, and vertical distance in vertical layout. @@ -800,16 +712,16 @@ Legend component.The legend component shows different sets of tags, colors, and |itemOpacity|1||the opacity of item color. |formatter|||Legend content string template formatter. Support for wrapping lines with \n. Template:{value}. |numericFormatter|||Standard numeric format strings. -|labelStyle|||the style of text. [LabelStyle](#LabelStyle)| +|labelStyle|||the style of text. [LabelStyle](#labelstyle)| |data|||Data array of legend. An array item is usually a name representing string. (If it is a pie chart, it could also be the name of a single data in the pie chart) of a series. If data is not specified, it will be auto collected from series. |icons|||自定义的图例标记图形。 |colors|||the colors of legend item. -|background||v3.1.0|the sytle of background. [ImageStyle](#ImageStyle)| -|padding||v3.1.0|the paddinng of item and background. [Padding](#Padding)| +|background||v3.1.0|the sytle of background. [ImageStyle](#imagestyle)| +|padding||v3.1.0|the paddinng of item and background. [Padding](#padding)| ## LegendTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) |field|default|since|comment| |--|--|--|--| @@ -817,17 +729,17 @@ Inherits or Implemented: [ComponentTheme](#ComponentTheme) ## Level -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| -|label|||文本标签样式。 [LabelStyle](#LabelStyle)| -|upperLabel|||上方的文本标签样式。 [LabelStyle](#LabelStyle)| -|itemStyle|||数据项样式。 [ItemStyle](#ItemStyle)| +|label|||文本标签样式。 [LabelStyle](#labelstyle)| +|upperLabel|||上方的文本标签样式。 [LabelStyle](#labelstyle)| +|itemStyle|||数据项样式。 [ItemStyle](#itemstyle)| ## LevelStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -836,22 +748,22 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## Line -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) ## LineArrow -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieExtraComponent](#iserieextracomponent) |field|default|since|comment| |--|--|--|--| |show|||Whether to show the arrow. |position|||The position of arrow.
`LineArrow.Position`:
- `End`: 末端箭头
- `Start`: 头端箭头
| -|arrow|||the arrow of line. [ArrowStyle](#ArrowStyle)| +|arrow|||the arrow of line. [ArrowStyle](#arrowstyle)| ## LineStyle -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent) The style of line. @@ -868,7 +780,7 @@ The style of line. ## Location -Inherits or Implemented: [ChildComponent](#ChildComponent),[IPropertyChanged](#IPropertyChanged) +Inherits or Implemented: [ChildComponent](#childcomponent),[IPropertyChanged](#ipropertychanged) Location type. Quick to set the general location. @@ -882,12 +794,12 @@ Location type. Quick to set the general location. ## MainComponent -Inherits or Implemented: [IComparable](#IComparable) +Inherits or Implemented: [IComparable](#icomparable) ## MarkArea -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) Used to mark an area in chart. For example, mark a time interval. @@ -896,14 +808,14 @@ Used to mark an area in chart. For example, mark a time interval. |show|true||是否显示标域。 |text|||The text of markArea. 标域显示的文本。 |serieIndex|0||Serie index of markArea. 标域影响的Serie索引。 -|start|||标域范围的起始数据。 [MarkAreaData](#MarkAreaData)| -|end|||标域范围的结束数据。 [MarkAreaData](#MarkAreaData)| -|itemStyle|||标域样式。 [ItemStyle](#ItemStyle)| -|label|||标域文本样式。 [LabelStyle](#LabelStyle)| +|start|||标域范围的起始数据。 [MarkAreaData](#markareadata)| +|end|||标域范围的结束数据。 [MarkAreaData](#markareadata)| +|itemStyle|||标域样式。 [ItemStyle](#itemstyle)| +|label|||标域文本样式。 [LabelStyle](#labelstyle)| ## MarkAreaData -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 标域的数据。 @@ -919,7 +831,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## MarkLine -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) Use a line in the chart to illustrate. @@ -927,12 +839,12 @@ Use a line in the chart to illustrate. |--|--|--|--| |show|true||Whether to display the marking line. |serieIndex|0||The serie index of markLine. -|animation|||The animation of markline. [AnimationStyle](#AnimationStyle)| +|animation|||The animation of markline. [AnimationStyle](#animationstyle)| |data|||A list of marked data. When the group of data item is 0, each data item represents a line; When the group is not 0, two data items of the same group represent the starting point and the ending point of the line respectively to form a line. In this case, the relevant style parameters of the line are the parameters of the starting point. ## MarkLineData -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) Data of marking line. @@ -947,14 +859,29 @@ Data of marking line. |yValue|||That's the value on the Y-axis. The value specified when the Y axis is the category axis represents the index of the category axis data, otherwise the specific value. |group|0||Grouping. When the group is not 0, it means that this data is the starting point or end point of the marking line. Data consistent with the group form a marking line. |zeroPosition|false||Is the origin of the coordinate system. -|startSymbol|||The symbol of the start point of markline. [SymbolStyle](#SymbolStyle)| -|endSymbol|||The symbol of the end point of markline. [SymbolStyle](#SymbolStyle)| -|lineStyle|||The line style of markline. [LineStyle](#LineStyle)| -|label|||Text styles of label. You can set position to Start, Middle, and End to display text in different locations. [LabelStyle](#LabelStyle)| +|startSymbol|||The symbol of the start point of markline. [SymbolStyle](#symbolstyle)| +|endSymbol|||The symbol of the end point of markline. [SymbolStyle](#symbolstyle)| +|lineStyle|||The line style of markline. [LineStyle](#linestyle)| +|label|||Text styles of label. You can set position to Start, Middle, and End to display text in different locations. [LabelStyle](#labelstyle)| + +## MarqueeStyle + +Inherits or Implemented: [ChildComponent](#childcomponent) + +> Since `v3.5.0` + +Marquee style. It can be used for the DataZoom component. 选取框样式。可用于DataZoom组件。 + +|field|default|since|comment| +|--|--|--|--| +|apply|false|v3.5.0|Check whether the scope is applied to the DataZoom. If this parameter is set to true, the range after the selection is complete is the DataZoom selection range. +|realRect|false|v3.5.0|Whether to select the actual box selection area. When true, the actual range between the mouse's actual point and the end point is used as the box selection area. +|areaStyle||v3.5.0|The area style of marquee. [AreaStyle](#areastyle)| +|lineStyle||v3.5.0|The line style of marquee border. [LineStyle](#linestyle)| ## Padding -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) padding setting of item or text. @@ -968,17 +895,17 @@ padding setting of item or text. ## Parallel -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) ## ParallelAxis -Inherits or Implemented: [Axis](#Axis) +Inherits or Implemented: [Axis](#axis) ## ParallelCoord -Inherits or Implemented: [CoordSystem](#CoordSystem),[IUpdateRuntimeData](#IUpdateRuntimeData),[ISerieContainer](#ISerieContainer) +Inherits or Implemented: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) Grid component. @@ -994,17 +921,17 @@ Grid component. ## Pie -Inherits or Implemented: [Serie](#Serie) +Inherits or Implemented: [Serie](#serie) ## PolarAxisTheme -Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) +Inherits or Implemented: [BaseAxisTheme](#baseaxistheme) ## PolarCoord -Inherits or Implemented: [CoordSystem](#CoordSystem),[ISerieContainer](#ISerieContainer) +Inherits or Implemented: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer) Polar coordinate can be used in scatter and line chart. Every polar coordinate has an angleAxis and a radiusAxis. @@ -1017,7 +944,7 @@ Polar coordinate can be used in scatter and line chart. Every polar coordinate h ## Radar -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) |field|default|since|comment| |--|--|--|--| @@ -1025,41 +952,41 @@ Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContai ## RadarAxisTheme -Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) +Inherits or Implemented: [BaseAxisTheme](#baseaxistheme) ## RadarCoord -Inherits or Implemented: [CoordSystem](#CoordSystem),[ISerieContainer](#ISerieContainer) +Inherits or Implemented: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer) Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。 ## RadiusAxis -Inherits or Implemented: [Axis](#Axis) +Inherits or Implemented: [Axis](#axis) Radial axis of polar coordinate. ## RadiusAxisTheme -Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) +Inherits or Implemented: [BaseAxisTheme](#baseaxistheme) ## Ring -Inherits or Implemented: [Serie](#Serie) +Inherits or Implemented: [Serie](#serie) ## Scatter -Inherits or Implemented: [BaseScatter](#BaseScatter) +Inherits or Implemented: [BaseScatter](#basescatter) ## SelectStyle -Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [StateStyle](#statestyle),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) > Since `v3.2.0` @@ -1068,7 +995,7 @@ Configurations of select state. ## Serie -Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable) +Inherits or Implemented: [BaseSerie](#baseserie),[IComparable](#icomparable) 系列。 @@ -1101,6 +1028,7 @@ Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable) |barType|||柱形图类型。
`BarType`:
- `Normal`: normal bar.
- `Zebra`: zebra bar.
- `Capsule`: capsule bar.
| |barPercentStack|false||柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 |barWidth|0||The width of the bar. Adaptive when default 0. +|barMaxWidth|0|v3.5.0|The max width of the bar. Adaptive when default 0. |barGap|0.1f||The gap between bars between different series, is a percent value like '0.3f' , which means 30% of the bar width, can be set as a fixed value. Set barGap as '-1' can overlap bars that belong to different series, which is useful when making a series of bar be background. In a single coodinate system, this attribute is shared by multiple 'bar' series. This attribute should be set on the last 'bar' series in the coodinate system, then it will be adopted by all 'bar' series in the coordinate system. |barZebraWidth|4f||斑马线的粗细。 |barZebraGap|2f||斑马线的间距。 @@ -1139,15 +1067,15 @@ Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable) |top|||Distance between component and the top side of the container. |bottom|||Distance between component and the bottom side of the container. |insertDataToHead|||Whether to add new data at the head or at the end of the list. -|lineStyle|||The style of line. [LineStyle](#LineStyle)| -|symbol|||the symbol of serie data item. [SerieSymbol](#SerieSymbol)| -|animation|||The start animation. [AnimationStyle](#AnimationStyle)| -|itemStyle|||The style of data item. [ItemStyle](#ItemStyle)| +|lineStyle|||The style of line. [LineStyle](#linestyle)| +|symbol|||the symbol of serie data item. [SerieSymbol](#seriesymbol)| +|animation|||The start animation. [AnimationStyle](#animationstyle)| +|itemStyle|||The style of data item. [ItemStyle](#itemstyle)| |data|||系列中的数据内容数组。SerieData可以设置1到n维数据。 ## SerieData -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) A data item of serie. @@ -1165,7 +1093,7 @@ A data item of serie. ## SerieSymbol -Inherits or Implemented: [SymbolStyle](#SymbolStyle),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [SymbolStyle](#symbolstyle),[ISerieDataComponent](#iseriedatacomponent) 系列数据项的标记的图形 @@ -1184,7 +1112,7 @@ Inherits or Implemented: [SymbolStyle](#SymbolStyle),[ISerieDataComponent](#ISer ## SerieTheme -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -1202,7 +1130,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## Settings -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) Global parameter setting component. The default value can be used in general, and can be adjusted when necessary. @@ -1225,22 +1153,22 @@ Global parameter setting component. The default value can be used in general, an ## SimplifiedBar -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer),[ISimplifiedSerie](#ISimplifiedSerie) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) ## SimplifiedCandlestick -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer),[ISimplifiedSerie](#ISimplifiedSerie) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) ## SimplifiedLine -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer),[ISimplifiedSerie](#ISimplifiedSerie) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) ## SingleAxis -Inherits or Implemented: [Axis](#Axis),[IUpdateRuntimeData](#IUpdateRuntimeData) +Inherits or Implemented: [Axis](#axis),[IUpdateRuntimeData](#iupdateruntimedata) Single axis. @@ -1256,12 +1184,12 @@ Single axis. ## SingleAxisCoord -Inherits or Implemented: [CoordSystem](#CoordSystem) +Inherits or Implemented: [CoordSystem](#coordsystem) ## StageColor -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -1270,7 +1198,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## StateStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) > Since `v3.2.0` @@ -1279,21 +1207,21 @@ the state style of serie. |field|default|since|comment| |--|--|--|--| |show|true||是否启用高亮样式。 -|label|||图形文本标签。 [LabelStyle](#LabelStyle)| -|labelLine|||图形文本引导线样式。 [LabelLine](#LabelLine)| -|itemStyle|||图形样式。 [ItemStyle](#ItemStyle)| -|lineStyle|||折线样式。 [LineStyle](#LineStyle)| -|areaStyle|||区域样式。 [AreaStyle](#AreaStyle)| -|symbol|||标记样式。 [SerieSymbol](#SerieSymbol)| +|label|||图形文本标签。 [LabelStyle](#labelstyle)| +|labelLine|||图形文本引导线样式。 [LabelLine](#labelline)| +|itemStyle|||图形样式。 [ItemStyle](#itemstyle)| +|lineStyle|||折线样式。 [LineStyle](#linestyle)| +|areaStyle|||区域样式。 [AreaStyle](#areastyle)| +|symbol|||标记样式。 [SerieSymbol](#seriesymbol)| ## SubTitleTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) ## SymbolStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 系列数据项的标记的图形 @@ -1312,7 +1240,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## TextLimit -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) Text character limitation and adaptation component. When the length of the text exceeds the set length, it is cropped and suffixes are appended to the end.Only valid in the category axis. @@ -1325,14 +1253,14 @@ Text character limitation and adaptation component. When the length of the text ## TextPadding -Inherits or Implemented: [Padding](#Padding) +Inherits or Implemented: [Padding](#padding) Settings related to text. ## TextStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) Settings related to text. @@ -1356,7 +1284,7 @@ Settings related to text. ## Theme -Inherits or Implemented: [ScriptableObject](#ScriptableObject) +Inherits or Implemented: [ScriptableObject](#scriptableobject) Theme. @@ -1369,26 +1297,26 @@ Theme. |contrastColor|||the contrast color of chart. |backgroundColor|||the background color of chart. |colorPalette|||The color list of palette. If no color is set in series, the colors would be adopted sequentially and circularly from this list as the colors of series. -|common||| [ComponentTheme](#ComponentTheme)| -|title||| [TitleTheme](#TitleTheme)| -|subTitle||| [SubTitleTheme](#SubTitleTheme)| -|legend||| [LegendTheme](#LegendTheme)| -|axis||| [AxisTheme](#AxisTheme)| -|tooltip||| [TooltipTheme](#TooltipTheme)| -|dataZoom||| [DataZoomTheme](#DataZoomTheme)| -|visualMap||| [VisualMapTheme](#VisualMapTheme)| -|serie||| [SerieTheme](#SerieTheme)| +|common||| [ComponentTheme](#componenttheme)| +|title||| [TitleTheme](#titletheme)| +|subTitle||| [SubTitleTheme](#subtitletheme)| +|legend||| [LegendTheme](#legendtheme)| +|axis||| [AxisTheme](#axistheme)| +|tooltip||| [TooltipTheme](#tooltiptheme)| +|dataZoom||| [DataZoomTheme](#datazoomtheme)| +|visualMap||| [VisualMapTheme](#visualmaptheme)| +|serie||| [SerieTheme](#serietheme)| ## ThemeStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) Theme. |field|default|since|comment| |--|--|--|--| |show|true|| -|sharedTheme|||the asset of theme. [Theme](#Theme)| +|sharedTheme|||the asset of theme. [Theme](#theme)| |transparentBackground|false||Whether the background color is transparent. When true, the background color is not drawn. |enableCustomTheme|false||Whether to customize theme colors. When set to true, you can use 'sync color to custom' to synchronize the theme color to the custom color. It can also be set manually. |customFont||| @@ -1397,7 +1325,7 @@ Theme. ## Title -Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPropertyChanged) +Inherits or Implemented: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) Title component, including main title and subtitle. @@ -1406,26 +1334,26 @@ Title component, including main title and subtitle. |show|true||[default:true] Set this to false to prevent the title from showing. |text|||The main title text, supporting \n for newlines. |subText|||Subtitle text, supporting for \n for newlines. -|labelStyle|||The text style of main title. [LabelStyle](#LabelStyle)| -|subLabelStyle|||The text style of sub title. [LabelStyle](#LabelStyle)| +|labelStyle|||The text style of main title. [LabelStyle](#labelstyle)| +|subLabelStyle|||The text style of sub title. [LabelStyle](#labelstyle)| |itemGap|0||[default:8] The gap between the main title and subtitle. -|location|||The location of title component. [Location](#Location)| +|location|||The location of title component. [Location](#location)| ## TitleStyle -Inherits or Implemented: [LabelStyle](#LabelStyle),[ISerieDataComponent](#ISerieDataComponent),[ISerieExtraComponent](#ISerieExtraComponent) +Inherits or Implemented: [LabelStyle](#labelstyle),[ISerieDataComponent](#iseriedatacomponent),[ISerieExtraComponent](#iserieextracomponent) the title of serie. ## TitleTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) ## Tooltip -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) Tooltip component. @@ -1459,13 +1387,13 @@ Tooltip component. |titleHeight|25f||height of title text. |itemHeight|25f||height of content text. |borderColor|Color32(230, 230, 230, 255)||the color of tooltip border. -|lineStyle|||the line style of indicator line. [LineStyle](#LineStyle)| -|titleLabelStyle|||the textstyle of title. [LabelStyle](#LabelStyle)| +|lineStyle|||the line style of indicator line. [LineStyle](#linestyle)| +|titleLabelStyle|||the textstyle of title. [LabelStyle](#labelstyle)| |contentLabelStyles|||the textstyle list of content. ## TooltipTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) |field|default|since|comment| |--|--|--|--| @@ -1478,7 +1406,7 @@ Inherits or Implemented: [ComponentTheme](#ComponentTheme) ## VisualMap -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) VisualMap component. Mapping data to visual elements such as colors. @@ -1505,7 +1433,7 @@ VisualMap component. Mapping data to visual elements such as colors. |hoverLink|true||When the hoverLink function is turned on, when the mouse hovers over the visualMap component, the corresponding value of the mouse position is highlighted in the corresponding graphic element in the diagram. |autoMinMax|true||Automatically set min, Max value 自动设置min,max的值 |orient|||Specify whether the layout of component is horizontal or vertical.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|location|||The location of component. [Location](#Location)| +|location|||The location of component. [Location](#location)| |workOnLine|true||Whether the visualmap is work on linestyle of linechart. |workOnArea|false||Whether the visualmap is work on areaStyle of linechart. |outOfRange|||Defines a visual color outside of the selected range. @@ -1513,7 +1441,7 @@ VisualMap component. Mapping data to visual elements such as colors. ## VisualMapRange -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -1524,7 +1452,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## VisualMapTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) |field|default|since|comment| |--|--|--|--| @@ -1535,7 +1463,7 @@ Inherits or Implemented: [ComponentTheme](#ComponentTheme) ## XAxis -Inherits or Implemented: [Axis](#Axis) +Inherits or Implemented: [Axis](#axis) The x axis in cartesian(rectangular) coordinate. @@ -1545,11 +1473,11 @@ The x axis in cartesian(rectangular) coordinate. ## XCSettings -Inherits or Implemented: [ScriptableObject](#ScriptableObject) +Inherits or Implemented: [ScriptableObject](#scriptableobject) |field|default|since|comment| |--|--|--|--| -|lang||| [Lang](#Lang)| +|lang||| [Lang](#lang)| |font||| |tMPFont||| |fontSizeLv1|28||一级字体大小。 @@ -1589,11 +1517,8 @@ Inherits or Implemented: [ScriptableObject](#ScriptableObject) ## YAxis -Inherits or Implemented: [Axis](#Axis) +Inherits or Implemented: [Axis](#axis) The x axis in cartesian(rectangular) coordinate. -[XCharts Homepage](https://github.com/XCharts-Team/XCharts)
-[XCharts API](XChartsAPI-EN.md)
-[XCharts FAQ](XChartsFAQ-EN.md) diff --git a/Documentation/XChartsFAQ-EN.md b/Documentation~/en/faq.md similarity index 100% rename from Documentation/XChartsFAQ-EN.md rename to Documentation~/en/faq.md diff --git a/Documentation~/en/img/readme_buildinchart.png b/Documentation~/en/img/readme_buildinchart.png new file mode 100644 index 00000000..21183fab Binary files /dev/null and b/Documentation~/en/img/readme_buildinchart.png differ diff --git a/Documentation~/en/img/readme_extendchart.png b/Documentation~/en/img/readme_extendchart.png new file mode 100644 index 00000000..1b21aedb Binary files /dev/null and b/Documentation~/en/img/readme_extendchart.png differ diff --git a/Documentation~/en/img/readme_xcharts3.png b/Documentation~/en/img/readme_xcharts3.png new file mode 100644 index 00000000..16c8e6e5 Binary files /dev/null and b/Documentation~/en/img/readme_xcharts3.png differ diff --git a/Documentation/res/alipay.png b/Documentation~/en/img/support_alipay.png similarity index 100% rename from Documentation/res/alipay.png rename to Documentation~/en/img/support_alipay.png diff --git a/Documentation/res/wechat.png b/Documentation~/en/img/support_wechat.png similarity index 100% rename from Documentation/res/wechat.png rename to Documentation~/en/img/support_wechat.png diff --git a/Documentation/res/op_addcomponent.png b/Documentation~/en/img/tutorial01_addcomponent.png similarity index 100% rename from Documentation/res/op_addcomponent.png rename to Documentation~/en/img/tutorial01_addcomponent.png diff --git a/Documentation/res/op_addserie.png b/Documentation~/en/img/tutorial01_addserie.png similarity index 100% rename from Documentation/res/op_addserie.png rename to Documentation~/en/img/tutorial01_addserie.png diff --git a/Documentation/res/op_addseriecomponent.png b/Documentation~/en/img/tutorial01_addseriecomponent.png similarity index 100% rename from Documentation/res/op_addseriecomponent.png rename to Documentation~/en/img/tutorial01_addseriecomponent.png diff --git a/Documentation/res/op_addseriedatacomponent.png b/Documentation~/en/img/tutorial01_addseriedatacomponent.png similarity index 100% rename from Documentation/res/op_addseriedatacomponent.png rename to Documentation~/en/img/tutorial01_addseriedatacomponent.png diff --git a/Documentation/res/linechart1.png b/Documentation~/en/img/tutorial01_linechart1.png similarity index 100% rename from Documentation/res/linechart1.png rename to Documentation~/en/img/tutorial01_linechart1.png diff --git a/Documentation/res/linechart2.png b/Documentation~/en/img/tutorial01_linechart2.png similarity index 100% rename from Documentation/res/linechart2.png rename to Documentation~/en/img/tutorial01_linechart2.png diff --git a/Documentation/res/linechart3.png b/Documentation~/en/img/tutorial01_linechart3.png similarity index 100% rename from Documentation/res/linechart3.png rename to Documentation~/en/img/tutorial01_linechart3.png diff --git a/Documentation/res/linechart4.png b/Documentation~/en/img/tutorial01_linechart4.png similarity index 100% rename from Documentation/res/linechart4.png rename to Documentation~/en/img/tutorial01_linechart4.png diff --git a/Documentation/res/linechart-simple.png b/Documentation~/en/img/tutorial01_linechart_simple.png similarity index 100% rename from Documentation/res/linechart-simple.png rename to Documentation~/en/img/tutorial01_linechart_simple.png diff --git a/Documentation/res/op_textmeshpro.png b/Documentation~/en/img/tutorial01_textmeshpro.png similarity index 100% rename from Documentation/res/op_textmeshpro.png rename to Documentation~/en/img/tutorial01_textmeshpro.png diff --git a/Documentation/res/op_textmeshpro3.png b/Documentation~/en/img/tutorial01_textmeshpro_font.png similarity index 100% rename from Documentation/res/op_textmeshpro3.png rename to Documentation~/en/img/tutorial01_textmeshpro_font.png diff --git a/Documentation/XChartsTutorial01-EN.md b/Documentation~/en/tutorial01.md similarity index 89% rename from Documentation/XChartsTutorial01-EN.md rename to Documentation~/en/tutorial01.md index 40342704..64080abf 100644 --- a/Documentation/XChartsTutorial01-EN.md +++ b/Documentation~/en/tutorial01.md @@ -1,10 +1,5 @@ # 教程:5分钟上手 XCharts 3.0 -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XCharts问答](XChartsFAQ-ZH.md)
-[XChartsAPI接口](XChartsAPI-ZH.md)
-[XCharts配置项手册](XChartsConfiguration-ZH.md) - ## 获取和导入 XCharts XCharts可通过以下任意一种方式导入到项目: @@ -33,40 +28,40 @@ XCharts可通过以下任意一种方式导入到项目: 在`Hierarchy`视图下右键或菜单栏`GameObject`下拉选择`XCharts->LineChart`,即可快速创建一个默认的折线图出来: -![linechart1](res/linechart1.png) +![linechart1](img/tutorial01_linechart1.png) ## 添加多个Seire 在`Inspector`视图,找到`LineChart`的面板,通过`Add Serie`按钮,可以添加第二条`Line`折线: -![op_addserie](res/op_addserie.png) -![linechart2](res/linechart2.png) +![op_addserie](img/tutorial01_addserie.png) +![linechart2](img/tutorial01_linechart2.png) ## 添加其他组件 默认图表没有`Legend`,需要`Legend`组件可通过`Add Component`按钮添加: -![op_addcomponent](res/op_addcomponent.png) +![op_addcomponent](img/tutorial01_addcomponent.png) ## 添加Serie组件 Serie只自带了几个常见的组件,其他组件要根据需求额外添加,不同的Serie支持不同的额外组件。比如,需要给折线图区域填充颜色,可单独给`Serie`添加`AreaStyle`组件: -![op_addseriecomponent](res/op_addseriecomponent.png) -![linechart3](res/linechart3.png) +![op_addseriecomponent](img/tutorial01_addseriecomponent.png) +![linechart3](img/tutorial01_linechart3.png) ## 添加SerieData组件 如果需要个性化定制每个数据项的配置,可以单独给每个`SerieData`添加`Component`。比如我们给折线图的第二个数据单独显示`Label`: -![op_addseriedatacomponent](res/op_addseriedatacomponent.png) -![linechart4](res/linechart4.png) +![op_addseriedatacomponent](img/tutorial01_addseriedatacomponent.png) +![linechart4](img/tutorial01_linechart4.png) ## 更多组件和配置参数 功能越丰富就越需要更多的组件和参数支持。XCharts有多达几十种的主组件和子组件,每个组件有几个至几十个不等的可配置参数,以支持各种灵活而复杂的功能。 -首次接触XCharts者可在 `Inspector` 视图下可以添加和调整各个组件,`Game` 视图会实时反馈调整的效果,以熟悉各种组件实现的效果。各个组件的详细参数说明可查阅[XCharts配置项手册](XChartsConfiguration-ZH.md)。 +首次接触XCharts者可在 `Inspector` 视图下可以添加和调整各个组件,`Game` 视图会实时反馈调整的效果,以熟悉各种组件实现的效果。各个组件的详细参数说明可查阅[XCharts配置项手册](configuration.md)。 ## 如何快速调整参数 @@ -150,13 +145,13 @@ for (int i = 0; i < 10; i++) 这样一个简单的折线图就出来了: -![linechart-simple](res/linechart-simple.png) +![tutorial01_linechart_simple](img/tutorial01_linechart_simple.png) 如果一个Chart里面有多个系列时,则Axis的data只需要加一次,不要多个循环加重复了。记住:Axis的数据个数要和Serie的数据个数一致。 完整代码请查阅`Examples`:`Example13_LineSimple.cs` -你还可以用代码控制更多的参数,`Examples`下还有更多的其他例子,凡是`Inspector`上看到的可配置的参数,都可以通过代码来设置。[XCharts配置项手册](XChartsConfiguration-ZH.md)里面的所有参数都是可以通过代码控制的。 +你还可以用代码控制更多的参数,`Examples`下还有更多的其他例子,凡是`Inspector`上看到的可配置的参数,都可以通过代码来设置。[XCharts配置项手册](configuration.md)里面的所有参数都是可以通过代码控制的。 另外,除非定制,建议调用`Chart`下提供的`public`接口,特别是数据相关操作部分。这些接口内部会做一些关联处理,比如刷新图表等。常见的接口有: @@ -178,11 +173,11 @@ XCharts内部有自动刷新机制,但也是在一定条件下。如果自己 XCharts支持TextMeshPro,但默认是不开启的,需要自己手动切换。可通过以下方式开启和关闭: -![textmeshpro1](res/op_textmeshpro.png) +![textmeshpro1](img/tutorial01_textmeshpro.png) 开启后需要设置好TextMeshPro要用的全局字体,也可以在主题Theme里单独设置: -![textmeshpro-font](res/op_textmeshpro3.png) +![textmeshpro-font](img/tutorial01_textmeshpro_font.png) 建议在项目初就规划好是否使用TextMeshPro,并设置好字体。在已有很多图表的情况下切换TMP时,可能某些图表无法自动刷新,可以手动点击`Rebuild Chart Object`按钮来重建图表,即可正常初始化。 @@ -256,8 +251,3 @@ var itemStyle = serieData.GetOrAddComponent(); //给数据项添加It itemStyle.color = Color.blue; ``` - -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XCharts问答](XChartsFAQ-ZH.md)
-[XChartsAPI接口](XChartsAPI-ZH.md)
-[XCharts配置项手册](XChartsConfiguration-ZH.md) diff --git a/Documentation~/fragments/.gitkeep b/Documentation~/fragments/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/Documentation~/variable.json b/Documentation~/variable.json new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/Documentation~/variable.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/Documentation/XChartsAPI-ZH.md b/Documentation~/zh/api.md similarity index 90% rename from Documentation/XChartsAPI-ZH.md rename to Documentation~/zh/api.md index 99293a79..50828bf4 100644 --- a/Documentation/XChartsAPI-ZH.md +++ b/Documentation~/zh/api.md @@ -1,102 +1,45 @@ -# API +--- +sidebar_position: 3 +slug: /api +--- -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XCharts配置项手册](XChartsConfiguration-ZH.md)
-[XCharts问答](XChartsFAQ-ZH.md) +# API手册 -## All Class +## 所有类 -- [AnimationStyleHelper](#AnimationStyleHelper) -- [AxisContext](#AxisContext) -- [AxisHandler<T>](#AxisHandler<T>) -- [AxisHelper](#AxisHelper) -- [BarChart](#BarChart) -- [BaseChart](#BaseChart) -- [BaseGraph](#BaseGraph) -- [CandlestickChart](#CandlestickChart) -- [ChartCached](#ChartCached) -- [ChartConst](#ChartConst) -- [ChartDrawer](#ChartDrawer) -- [ChartHelper](#ChartHelper) -- [ChartLabel](#ChartLabel) -- [ChartObject](#ChartObject) -- [CheckHelper](#CheckHelper) -- [ColorUtil](#ColorUtil) -- [ComponentHandlerAttribute](#ComponentHandlerAttribute) -- [ComponentHelper](#ComponentHelper) -- [CoordOptionsAttribute](#CoordOptionsAttribute) -- [DataZoomContext](#DataZoomContext) -- [DataZoomHelper](#DataZoomHelper) -- [DateTimeUtil](#DateTimeUtil) -- [DefaultAnimationAttribute](#DefaultAnimationAttribute) -- [DefineSymbolsUtil](#DefineSymbolsUtil) -- [FormatterHelper](#FormatterHelper) -- [GridCoordContext](#GridCoordContext) -- [HeatmapChart](#HeatmapChart) -- [IgnoreDoc](#IgnoreDoc) -- [InteractData](#InteractData) -- [LayerHelper](#LayerHelper) -- [LegendContext](#LegendContext) -- [LegendHelper](#LegendHelper) -- [LegendItem](#LegendItem) -- [LineChart](#LineChart) -- [ListFor](#ListFor) -- [ListForComponent](#ListForComponent) -- [ListForSerie](#ListForSerie) -- [MainComponentContext](#MainComponentContext) -- [MainComponentHandler](#MainComponentHandler) -- [MainComponentHandler<T>](#MainComponentHandler<T>) -- [MathUtil](#MathUtil) -- [Painter](#Painter) -- [ParallelChart](#ParallelChart) -- [ParallelCoordContext](#ParallelCoordContext) -- [PieChart](#PieChart) -- [PolarChart](#PolarChart) -- [PolarCoordContext](#PolarCoordContext) -- [ProgressBar](#ProgressBar) -- [PropertyUtil](#PropertyUtil) -- [RadarChart](#RadarChart) -- [RadarCoordContext](#RadarCoordContext) -- [ReflectionUtil](#ReflectionUtil) -- [RequireChartComponentAttribute](#RequireChartComponentAttribute) -- [RingChart](#RingChart) -- [RuntimeUtil](#RuntimeUtil) -- [ScatterChart](#ScatterChart) -- [SerieContext](#SerieContext) -- [SerieConvertAttribute](#SerieConvertAttribute) -- [SerieDataContext](#SerieDataContext) -- [SerieDataExtraComponentAttribute](#SerieDataExtraComponentAttribute) -- [SerieDataExtraFieldAttribute](#SerieDataExtraFieldAttribute) -- [SerieExtraComponentAttribute](#SerieExtraComponentAttribute) -- [SerieHandler](#SerieHandler) -- [SerieHandler<T>](#SerieHandler<T>) -- [SerieHandlerAttribute](#SerieHandlerAttribute) -- [SerieHelper](#SerieHelper) -- [SerieLabelHelper](#SerieLabelHelper) -- [SerieLabelPool](#SerieLabelPool) -- [SerieParams](#SerieParams) -- [SeriesHelper](#SeriesHelper) -- [SimplifiedBarChart](#SimplifiedBarChart) -- [SimplifiedCandlestickChart](#SimplifiedCandlestickChart) -- [SimplifiedLineChart](#SimplifiedLineChart) -- [Since](#Since) -- [SVG](#SVG) -- [SVGImage](#SVGImage) -- [SVGPath](#SVGPath) -- [SVGPathSeg](#SVGPathSeg) -- [TooltipContext](#TooltipContext) -- [TooltipData](#TooltipData) -- [TooltipHelper](#TooltipHelper) -- [TooltipView](#TooltipView) -- [TooltipViewItem](#TooltipViewItem) -- [UGL](#UGL) -- [UGLExample](#UGLExample) -- [UGLHelper](#UGLHelper) -- [VisualMapContext](#VisualMapContext) -- [VisualMapHelper](#VisualMapHelper) -- [XChartsMgr](#XChartsMgr) -- [XCResourceImporterWindow](#XCResourceImporterWindow) -- [XCThemeMgr](#XCThemeMgr) +|||| +|--|--|--| +|[AnimationStyleHelper](#animationstylehelper)|[AxisContext](#axiscontext)|[AxisHandler<T>](#axishandlert)| +|[AxisHelper](#axishelper)|[BarChart](#barchart)|[BaseChart](#basechart)| +|[BaseGraph](#basegraph)|[CandlestickChart](#candlestickchart)|[ChartCached](#chartcached)| +|[ChartConst](#chartconst)|[ChartDrawer](#chartdrawer)|[ChartHelper](#charthelper)| +|[ChartLabel](#chartlabel)|[ChartObject](#chartobject)|[CheckHelper](#checkhelper)| +|[ColorUtil](#colorutil)|[ComponentHandlerAttribute](#componenthandlerattribute)|[ComponentHelper](#componenthelper)| +|[CoordOptionsAttribute](#coordoptionsattribute)|[DataZoomContext](#datazoomcontext)|[DataZoomHelper](#datazoomhelper)| +|[DateTimeUtil](#datetimeutil)|[DefaultAnimationAttribute](#defaultanimationattribute)|[DefineSymbolsUtil](#definesymbolsutil)| +|[FormatterHelper](#formatterhelper)|[GridCoordContext](#gridcoordcontext)|[HeatmapChart](#heatmapchart)| +|[IgnoreDoc](#ignoredoc)|[InteractData](#interactdata)|[LayerHelper](#layerhelper)| +|[LegendContext](#legendcontext)|[LegendHelper](#legendhelper)|[LegendItem](#legenditem)| +|[LineChart](#linechart)|[ListFor](#listfor)|[ListForComponent](#listforcomponent)| +|[ListForSerie](#listforserie)|[MainComponentContext](#maincomponentcontext)|[MainComponentHandler](#maincomponenthandler)| +|[MainComponentHandler<T>](#maincomponenthandlert)|[MathUtil](#mathutil)|[Painter](#painter)| +|[ParallelChart](#parallelchart)|[ParallelCoordContext](#parallelcoordcontext)|[PieChart](#piechart)| +|[PolarChart](#polarchart)|[PolarCoordContext](#polarcoordcontext)|[ProgressBar](#progressbar)| +|[PropertyUtil](#propertyutil)|[RadarChart](#radarchart)|[RadarCoordContext](#radarcoordcontext)| +|[ReflectionUtil](#reflectionutil)|[RequireChartComponentAttribute](#requirechartcomponentattribute)|[RingChart](#ringchart)| +|[RuntimeUtil](#runtimeutil)|[ScatterChart](#scatterchart)|[SerieContext](#seriecontext)| +|[SerieConvertAttribute](#serieconvertattribute)|[SerieDataContext](#seriedatacontext)|[SerieDataExtraComponentAttribute](#seriedataextracomponentattribute)| +|[SerieDataExtraFieldAttribute](#seriedataextrafieldattribute)|[SerieExtraComponentAttribute](#serieextracomponentattribute)|[SerieHandler](#seriehandler)| +|[SerieHandler<T>](#seriehandlert)|[SerieHandlerAttribute](#seriehandlerattribute)|[SerieHelper](#seriehelper)| +|[SerieLabelHelper](#serielabelhelper)|[SerieLabelPool](#serielabelpool)|[SerieParams](#serieparams)| +|[SeriesHelper](#serieshelper)|[SimplifiedBarChart](#simplifiedbarchart)|[SimplifiedCandlestickChart](#simplifiedcandlestickchart)| +|[SimplifiedLineChart](#simplifiedlinechart)|[Since](#since)|[SVG](#svg)| +|[SVGImage](#svgimage)|[SVGPath](#svgpath)|[SVGPathSeg](#svgpathseg)| +|[TooltipContext](#tooltipcontext)|[TooltipData](#tooltipdata)|[TooltipHelper](#tooltiphelper)| +|[TooltipView](#tooltipview)|[TooltipViewItem](#tooltipviewitem)|[UGL](#ugl)| +|[UGLExample](#uglexample)|[UGLHelper](#uglhelper)|[VisualMapContext](#visualmapcontext)| +|[VisualMapHelper](#visualmaphelper)|[XChartsMgr](#xchartsmgr)|[XCResourceImporterWindow](#xcresourceimporterwindow)| +|[XCThemeMgr](#xcthememgr)| ## AnimationStyleHelper @@ -109,11 +52,11 @@ ## AxisContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## AxisHandler<T> -Inherits or Implemented: [MainComponentHandler](#MainComponentHandler) +Inherits or Implemented: [MainComponentHandler](#maincomponenthandler) ## AxisHelper @@ -143,11 +86,11 @@ Inherits or Implemented: [MainComponentHandler](#MainComponentHandler) ## BarChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## BaseChart -Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver](#ISerializationCallbackReceiver) +Inherits or Implemented: [BaseGraph](#basegraph),[ISerializationCallbackReceiver](#iserializationcallbackreceiver) |public method|description| |--|--| @@ -172,7 +115,7 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver | AddYAxisData() |public void AddYAxisData(string category, int yAxisIndex = 0)
添加一个类目数据到指定的y轴。 | | AddYAxisIcon() |public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)
添加一个图标到指定的y轴。 | | AnimationEnable() |public void AnimationEnable(bool flag)
启用或关闭起始动画。 | -| AnimationFadeIn() |public void AnimationFadeIn()
开始渐入动画。 | +| AnimationFadeIn() |public void AnimationFadeIn(bool reset = true)
开始渐入动画。 | | AnimationFadeOut() |public void AnimationFadeOut()
开始渐出动画。 | | AnimationPause() |public void AnimationPause()
暂停动画。 | | AnimationReset() |public void AnimationReset()
重置动画。 | @@ -299,7 +242,6 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver | TryAddChartComponent<T>() |public bool TryAddChartComponent<T>() where T : MainComponent| | TryAddChartComponent<T>() |public bool TryAddChartComponent<T>(out T component) where T : MainComponent| | TryGetChartComponent<T>() |public bool TryGetChartComponent<T>(out T component, int index = 0)| -| UdpateXAxisIcon() |public void UdpateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)
更新X轴图标。 | | UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, double value)
更新指定系列中的指定索引数据。 | | UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | | UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | @@ -312,12 +254,13 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver | UpdateTheme() |public bool UpdateTheme(ThemeType theme)
切换内置主题。 | | UpdateTheme() |public void UpdateTheme(Theme theme)
切换图表主题。 | | UpdateXAxisData() |public void UpdateXAxisData(int index, string category, int xAxisIndex = 0)
更新X轴类目数据。 | +| UpdateXAxisIcon() |public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)
更新X轴图标。 | | UpdateYAxisData() |public void UpdateYAxisData(int index, string category, int yAxisIndex = 0)
更新Y轴类目数据。 | | UpdateYAxisIcon() |public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)
更新Y轴图标。 | ## BaseGraph -Inherits or Implemented: [MaskableGraphic](#MaskableGraphic),[IPointerDownHandler](#IPointerDownHandler),[IPointerUpHandler](#IPointerUpHandler),[](#) +Inherits or Implemented: [MaskableGraphic](#maskablegraphic),[IPointerDownHandler](#ipointerdownhandler),[IPointerUpHandler](#ipointeruphandler),[](#) |public method|description| |--|--| @@ -340,7 +283,7 @@ Inherits or Implemented: [MaskableGraphic](#MaskableGraphic),[IPointerDownHandle ## CandlestickChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## ChartCached @@ -423,7 +366,7 @@ Inherits or Implemented: [BaseChart](#BaseChart) ## ChartLabel -Inherits or Implemented: [Image](#Image) +Inherits or Implemented: [Image](#image) |public method|description| |--|--| @@ -469,7 +412,7 @@ Inherits or Implemented: [Image](#Image) ## ComponentHandlerAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -488,7 +431,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## CoordOptionsAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -500,7 +443,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## DataZoomContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## DataZoomHelper @@ -519,7 +462,7 @@ Inherits or Implemented: [MainComponentContext](#MainComponentContext) ## DefaultAnimationAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -544,15 +487,15 @@ Inherits or Implemented: [Attribute](#Attribute) ## GridCoordContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## HeatmapChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## IgnoreDoc -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -583,7 +526,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## LegendContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## LegendHelper @@ -621,11 +564,11 @@ Inherits or Implemented: [MainComponentContext](#MainComponentContext) ## LineChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## ListFor -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -633,7 +576,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## ListForComponent -Inherits or Implemented: [ListFor](#ListFor) +Inherits or Implemented: [ListFor](#listfor) |public method|description| |--|--| @@ -641,7 +584,7 @@ Inherits or Implemented: [ListFor](#ListFor) ## ListForSerie -Inherits or Implemented: [ListFor](#ListFor) +Inherits or Implemented: [ListFor](#listfor) |public method|description| |--|--| @@ -673,7 +616,7 @@ Inherits or Implemented: [ListFor](#ListFor) ## MainComponentHandler<T> -Inherits or Implemented: [MainComponentHandler](#MainComponentHandler) +Inherits or Implemented: [MainComponentHandler](#maincomponenthandler) ## MathUtil @@ -699,7 +642,7 @@ Inherits or Implemented: [new()](#new()) ## Painter -Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) +Inherits or Implemented: [MaskableGraphic](#maskablegraphic) |public method|description| |--|--| @@ -709,27 +652,27 @@ Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) ## ParallelChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## ParallelCoordContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## PieChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## PolarChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## PolarCoordContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## ProgressBar -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## PropertyUtil @@ -742,11 +685,11 @@ Inherits or Implemented: [BaseChart](#BaseChart) ## RadarChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## RadarCoordContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## ReflectionUtil @@ -761,7 +704,7 @@ Inherits or Implemented: [MainComponentContext](#MainComponentContext) ## RequireChartComponentAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -771,7 +714,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## RingChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## RuntimeUtil @@ -786,13 +729,13 @@ Inherits or Implemented: [BaseChart](#BaseChart) ## ScatterChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## SerieContext ## SerieConvertAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -811,7 +754,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## SerieDataExtraComponentAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -828,7 +771,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## SerieDataExtraFieldAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -844,7 +787,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## SerieExtraComponentAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -888,10 +831,11 @@ Inherits or Implemented: [Attribute](#Attribute) ## SerieHandler<T> -Inherits or Implemented: [SerieHandler where T](#SerieHandler where T),[Serie](#Serie) +Inherits or Implemented: [SerieHandler where T](#seriehandler where t),[Serie](#serie) |public method|description| |--|--| +| DrawLabelLineSymbol() |public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor)| | GetSerieDataAutoColor() |public virtual Color GetSerieDataAutoColor(SerieData serieData)| | GetSerieDataLabelOffset() |public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label)| | GetSerieDataLabelPosition() |public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)| @@ -908,7 +852,7 @@ Inherits or Implemented: [SerieHandler where T](#SerieHandler where T),[Serie](# ## SerieHandlerAttribute -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -998,19 +942,19 @@ Inherits or Implemented: [Attribute](#Attribute) ## SimplifiedBarChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## SimplifiedCandlestickChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## SimplifiedLineChart -Inherits or Implemented: [BaseChart](#BaseChart) +Inherits or Implemented: [BaseChart](#basechart) ## Since -Inherits or Implemented: [Attribute](#Attribute) +Inherits or Implemented: [Attribute](#attribute) |public method|description| |--|--| @@ -1026,7 +970,7 @@ Inherits or Implemented: [Attribute](#Attribute) ## SVGImage -Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) +Inherits or Implemented: [MaskableGraphic](#maskablegraphic) ## SVGPath @@ -1051,7 +995,7 @@ Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) |public method|description| |--|--| | GetItemNumericFormatter() |public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)| -| GetLineColor() |public static Color32 GetLineColor(Tooltip tooltip, ThemeStyle theme)| +| GetLineColor() |public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor)| | IsIgnoreFormatter() |public static bool IsIgnoreFormatter(string itemFormatter)| | LimitInRect() |public static void LimitInRect(Tooltip tooltip, Rect chartRect)| @@ -1092,7 +1036,7 @@ Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) ## UGLExample -Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) +Inherits or Implemented: [MaskableGraphic](#maskablegraphic) ## UGLHelper @@ -1123,7 +1067,7 @@ Inherits or Implemented: [MaskableGraphic](#MaskableGraphic) ## VisualMapContext -Inherits or Implemented: [MainComponentContext](#MainComponentContext) +Inherits or Implemented: [MainComponentContext](#maincomponentcontext) ## VisualMapHelper @@ -1157,7 +1101,7 @@ Inherits or Implemented: [MainComponentContext](#MainComponentContext) ## XCResourceImporterWindow -Inherits or Implemented: [UnityEditor.EditorWindow](#UnityEditor.EditorWindow) +Inherits or Implemented: [UnityEditor.EditorWindow](#unityeditor.editorwindow) |public method|description| |--|--| @@ -1182,6 +1126,3 @@ Inherits or Implemented: [UnityEditor.EditorWindow](#UnityEditor.EditorWindow) | ReloadThemeList() |public static void ReloadThemeList()
重新加载主题列表 | | SwitchTheme() |public static void SwitchTheme(BaseChart chart, string themeName)| -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XCharts配置项手册](XChartsConfiguration-ZH.md)
-[XCharts问答](XChartsFAQ-ZH.md) diff --git a/CHANGELOG.md b/Documentation~/zh/changelog.md similarity index 92% rename from CHANGELOG.md rename to Documentation~/zh/changelog.md index 5b19521f..653a6225 100644 --- a/CHANGELOG.md +++ b/Documentation~/zh/changelog.md @@ -1,68 +1,105 @@ +--- +sidebar_position: 5 +slug: /changelog +--- # 更新日志 [master](#master) -[v3.4.0](#v3.4.0) -[v3.3.0](#v3.3.0) -[v3.2.0](#v3.2.0) -[v3.1.0](#v3.1.0) -[v3.0.1](#v3.0.1) -[v3.0.0](#v3.0.0) -[v3.0.0-preivew9](#v3.0.0-preivew9) -[v3.0.0-preivew8](#v3.0.0-preivew8) -[v3.0.0-preivew7](#v3.0.0-preivew7) -[v3.0.0-preivew6](#v3.0.0-preivew6) -[v3.0.0-preivew5](#v3.0.0-preivew5) -[v3.0.0-preivew4](#v3.0.0-preivew4) -[v3.0.0-preivew3](#v3.0.0-preivew3) -[v3.0.0-preivew2](#v3.0.0-preivew2) -[v3.0.0-preivew1](#v3.0.0-preivew1) -[v2.8.1](#v2.8.1) -[v2.8.0](#v2.8.0) -[v2.7.0](#v2.7.0) -[v2.6.0](#v2.6.0) -[v2.5.0](#v2.5.0) -[v2.4.0](#v2.4.0) -[v2.3.0](#v2.3.0) -[v2.2.3](#v2.2.3) -[v2.2.2](#v2.2.2) -[v2.2.1](#v2.2.1) -[v2.2.0](#v2.2.0) -[v2.1.1](#v2.1.1) -[v2.1.0](#v2.1.0) -[v2.0.1](#v2.0.1) -[v2.0.0](#v2.0.0) -[v2.0.0-preview.2](#v2.0.0-preview.2) -[v2.0.0-preview.1](#v2.0.0-preview.1) -[v1.6.3](#v1.6.3) -[v1.6.1](#v1.6.1) -[v1.6.0](#v1.6.0) -[v1.5.2](#v1.5.2) -[v1.5.1](#v1.5.1) -[v1.5.0](#v1.5.0) -[v1.4.0](#v1.4.0) -[v1.3.1](#v1.3.1) -[v1.3.0](#v1.3.0) -[v1.2.0](#v1.2.0) -[v1.1.0](#v1.1.0) -[v1.0.5](#v1.0.5) -[v1.0.4](#v1.0.4) -[v1.0.3](#v1.0.3) -[v1.0.2](#v1.0.2) -[v1.0.1](#v1.0.1) -[v1.0.0](#v1.0.0) -[v0.8.3](#v0.8.3) -[v0.8.2](#v0.8.2) -[v0.8.1](#v0.8.1) -[v0.8.0](#v0.8.0) -[v0.5.0](#v0.5.0) -[v0.1.0](#v0.1.0) +[v3.5.0](#v350) +[v3.4.0](#v340) +[v3.3.0](#v330) +[v3.2.0](#v320) +[v3.1.0](#v310) +[v3.0.1](#v301) +[v3.0.0](#v300) +[v3.0.0-preivew9](#v300-preivew9) +[v3.0.0-preivew8](#v300-preivew8) +[v3.0.0-preivew7](#v300-preivew7) +[v3.0.0-preivew6](#v300-preivew6) +[v3.0.0-preivew5](#v300-preivew5) +[v3.0.0-preivew4](#v300-preivew4) +[v3.0.0-preivew3](#v300-preivew3) +[v3.0.0-preivew2](#v300-preivew2) +[v3.0.0-preivew1](#v300-preivew1) +[v2.8.1](#v281) +[v2.8.0](#v280) +[v2.7.0](#v270) +[v2.6.0](#v260) +[v2.5.0](#v250) +[v2.4.0](#v240) +[v2.3.0](#v230) +[v2.2.3](#v223) +[v2.2.2](#v222) +[v2.2.1](#v221) +[v2.2.0](#v220) +[v2.1.1](#v211) +[v2.1.0](#v210) +[v2.0.1](#v201) +[v2.0.0](#v200) +[v2.0.0-preview.2](#v200-preview2) +[v2.0.0-preview.1](#v200-preview1) +[v1.6.3](#v163) +[v1.6.1](#v161) +[v1.6.0](#v160) +[v1.5.2](#v152) +[v1.5.1](#v151) +[v1.5.0](#v150) +[v1.4.0](#v140) +[v1.3.1](#v131) +[v1.3.0](#v130) +[v1.2.0](#v120) +[v1.1.0](#v110) +[v1.0.5](#v105) +[v1.0.4](#v104) +[v1.0.3](#v103) +[v1.0.2](#v102) +[v1.0.1](#v101) +[v1.0.0](#v100) +[v0.8.3](#v083) +[v0.8.2](#v082) +[v0.8.1](#v081) +[v0.8.0](#v080) +[v0.5.0](#v050) +[v0.1.0](#v010) ## master +## v3.5.0 + +版本要点: + +* 调整文档结构,增加[XCharts官方主页](https://xcharts-team.github.io) +* 增加DataZoom框选支持 +* 增加Bar的最大宽度设置支持 +* 其他优化 + +升级注意: + +* 由于调整了文档目录结构,升级前建议先备份,再删除原XCharts后再升级 + +日志详情: + +* (2022.12.01) 发布`v3.5.0`版本 +* (2022.11.30) 增加`Serie`的`barMaxWidth`可设置`Bar`的最大宽度 +* (2022.11.30) 优化`Tooltip`的`Shadow`绘制不超出图表范围 +* (2022.11.29) 修复`Tooltip`指示的`Serie`数据项索引异常的问题 +* (2022.11.27) 优化`Axis`的`AxisName`的偏移设置 +* (2022.11.27) 优化`Comment`的位置,用`Location代替Position` +* (2022.11.27) 优化`Tooltip`的`LineStyle`支持设置`Shadow`时的颜色 +* (2022.11.27) 调整`Documentation`文档结构 +* (2022.11.26) 优化`LabelLine`的`symbol`默认不显示 +* (2022.11.26) 修复`LineChart`在`XY`都为数值轴时添加无序数据显示异常的问题 +* (2022.11.26) 修复`DataZoom`从右往左框选时异常的问题 +* (2022.11.20) 调整`UdpateXAxisIcon()`接口重命名为`UpdateXAxisIcon()` (#235) +* (2022.11.12) 增加`Pie`的`LabelLine`支持`Symbol` +* (2022.11.12) 增加`DataZoom`的`MarqueeStyle`支持框选区域 +* (2022.11.10) 优化`Radar`在类型为`Single`时的区域颜色填充效果 +* (2022.11.04) 修复`Tooltip`的`itemFormatter`设置通配符`{d}`后异常的问题 + ## v3.4.0 -### 版本要点 +版本要点: * 增加`Axis`的`indicatorLabel`,可单独设置不同的指示文本样式 * 增加`Serie`的`markColor`可设置标识颜色 @@ -71,7 +108,7 @@ * 增加`DataZoom`对数值轴的支持 * 增加`Line`的`SmoothLimit`可控制平滑曲线不同效果 -### 日志详情 +日志详情: * (2022.11.01) 发布`v3.4.0`版本 * (2022.10.30) 增加`API`:`AddData()`、`ClearSerieData()`、`ClearComponentData()` @@ -86,14 +123,14 @@ * (2022.10.13) 修复`Pie`的环形饼图设置边框时效果异常的问题 (#225) * (2022.10.13) 修复`Download`的接口造成`iOS`平台打包失败的问题 * (2022.10.12) 增加`Animation`的`UnscaledTime`支持设置动画是否受TimeScale的影响 (#223) -* (2022.10.10) 优化`Documentation`文档格式 +* (2022.10.10) 优化`Documentation~`文档格式 * (2022.10.10) 增加`Line`的`SmoothLimit`可控制平滑曲线不同效果 * (2022.10.05) 修复`Serie`隐藏时`Tooltip`还显示信息的问题 * (2022.09.30) 修复`Chart`在很小尺寸时出现`DivideByZeroException`异常的问题 (#230) ## v3.3.0 -### 版本要点 +版本要点: * 优化图表细节,支持更多功能 * 增加大量的Demo示例 @@ -102,7 +139,7 @@ * 新增HeatmapChart热力图类型 * 完善Tooltip显示 -### 日志详情 +日志详情: * (2022.09.28) 发布`v3.3.0`版本 * (2022.09.26) 优化`Axis`在类目轴时的默认分割段数 @@ -142,7 +179,7 @@ ## v3.2.0 -### 版本要点 +版本要点: * `Serie`支持高亮,淡出和选中三状态配置:`EmphasisStyle`,`BlurStyle`和`SelectStyle` * `Axis`支持坐标轴次刻度和次分割线:`MinorTick`和`MinorSplitLine` @@ -152,7 +189,7 @@ * `DataZoom`支持时间轴 * 其他优化和修复 -### 日志详情 +日志详情: * (2022.08.16) 发布`v3.2.0`版本 * (2022.08.15) 优化`Smooth`贝塞尔曲线算法 @@ -184,7 +221,7 @@ ## v3.1.0 -### 版本要点 +版本要点: * 优化`Axis` * 优化`Tooltip` @@ -193,7 +230,7 @@ * 完善配置项手册 * 修复若干问题 -### 日志详情 +日志详情: * (2022.07.12) 发布`v3.1.0`版本 * (2022.07.12) 修复`Serie`的`ignoreLineBreak`不生效的问题 @@ -312,6 +349,13 @@ * (2022.01.07) 发布`v3.0.0-preivew1`版本 +## v2.8.2 + +* (2022.08.15) 发布`v2.8.2`版本 +* (2022.08.15) 增加`HeatmapChart`对自定义`Tooltip`的`formatter`的支持 +* (2022.07.13) 修复`SerieLabel`刷新异常的问题 #215 +* (2022.06.30) 优化`Radar`让`Tooltip`的层在`Indicator`之上 + ## v2.8.1 * (2022.05.06) 发布`v2.8.1`版本 @@ -362,13 +406,13 @@ ## v2.4.0 -### 版本要点 +版本要点: * 折线图支持忽略数据的连线是断开还是连接 * 折线图支持轨迹匀速动画 * 其他优化和问题修复 -### 日志详情 +日志详情: * (2021.08.31) 发布`v2.4.0`版本 * (2021.08.31) 优化`RingChart`的渐变效果 @@ -387,7 +431,7 @@ ## v2.3.0 -### 版本要点 +版本要点: * 数据存储由`float`升级为`double` * 新增`MarkLine`标线 @@ -397,11 +441,11 @@ * `PieChart`优化 * 问题修复 -### 升级注意 +升级注意: -由于数据类型升级为了`double`,`float`隐式转`double`可能有精度问题,所以建议之前为`float`的数据类型都手动改为`double`类型。 +* 由于数据类型升级为了`double`,`float`隐式转`double`可能有精度问题,所以建议之前为`float`的数据类型都手动改为`double`类型。 -### 日志详情 +日志详情: * (2021.07.24) 发布`v2.3.0`版本 * (2021.07.22) 完善`SerieSymbol`以支持象形柱图`PictorialBarChart`扩展 @@ -554,7 +598,7 @@ ## v1.6.0 * (2020.08.24) 发布`v1.6.0`版本 -* (2020.08.23) 重构代码,将与绘制相关的`Color`改为`Color32`,减少隐式转换(更新后会导致自定义的颜色丢失,可参考[问答29](https://github.com/XCharts-Team/XCharts/blob/master/Assets/XCharts/Documentation/XChartsFAQ-ZH.md)进行升级) +* (2020.08.23) 重构代码,将与绘制相关的`Color`改为`Color32`,减少隐式转换(更新后会导致自定义的颜色丢失,可参考[问答29](https://github.com/XCharts-Team/XCharts/blob/master/Assets/XCharts/Documentation~/fqa.md)进行升级) * (2020.08.15) 优化`PieChart`绘制表现效果#85 * (2020.08.11) 增加`LiquidChart`数据变更动画#83 * (2020.08.11) 优化`PieChart`文本堆叠和引线效果#85 diff --git a/Documentation/XChartsConfiguration-ZH.md b/Documentation~/zh/configuration.md similarity index 76% rename from Documentation/XChartsConfiguration-ZH.md rename to Documentation~/zh/configuration.md index 5e3d4c17..c7719f26 100644 --- a/Documentation/XChartsConfiguration-ZH.md +++ b/Documentation~/zh/configuration.md @@ -1,175 +1,86 @@ -# 配置项手册 +--- +sidebar_position: 2 +slug: /configuration +--- -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XChartsAPI接口](XChartsAPI-ZH.md)
-[XCharts问答](XChartsFAQ-ZH.md) +# 配置项手册 ## Serie 系列 -- [Bar](#Bar) -- [BaseScatter](#BaseScatter) -- [Candlestick](#Candlestick) -- [EffectScatter](#EffectScatter) -- [Heatmap](#Heatmap) -- [Line](#Line) -- [Parallel](#Parallel) -- [Pie](#Pie) -- [Radar](#Radar) -- [Ring](#Ring) -- [Scatter](#Scatter) -- [Serie](#Serie) -- [SimplifiedBar](#SimplifiedBar) -- [SimplifiedCandlestick](#SimplifiedCandlestick) -- [SimplifiedLine](#SimplifiedLine) +||||| +|--|--|--|--| +|[Bar](#bar)|[BaseScatter](#basescatter)|[Candlestick](#candlestick)|[EffectScatter](#effectscatter)| +|[Heatmap](#heatmap)|[Line](#line)|[Parallel](#parallel)|[Pie](#pie)| +|[Radar](#radar)|[Ring](#ring)|[Scatter](#scatter)|[Serie](#serie)| +|[SimplifiedBar](#simplifiedbar)|[SimplifiedCandlestick](#simplifiedcandlestick)|[SimplifiedLine](#simplifiedline)| ## Theme 主题 -- [AngleAxisTheme](#AngleAxisTheme) -- [AxisTheme](#AxisTheme) -- [BaseAxisTheme](#BaseAxisTheme) -- [ComponentTheme](#ComponentTheme) -- [DataZoomTheme](#DataZoomTheme) -- [LegendTheme](#LegendTheme) -- [PolarAxisTheme](#PolarAxisTheme) -- [RadarAxisTheme](#RadarAxisTheme) -- [RadiusAxisTheme](#RadiusAxisTheme) -- [SerieTheme](#SerieTheme) -- [SubTitleTheme](#SubTitleTheme) -- [Theme](#Theme) -- [ThemeStyle](#ThemeStyle) -- [TitleTheme](#TitleTheme) -- [TooltipTheme](#TooltipTheme) -- [VisualMapTheme](#VisualMapTheme) +||||| +|--|--|--|--| +|[AngleAxisTheme](#angleaxistheme)|[AxisTheme](#axistheme)|[BaseAxisTheme](#baseaxistheme)|[ComponentTheme](#componenttheme)| +|[DataZoomTheme](#datazoomtheme)|[LegendTheme](#legendtheme)|[PolarAxisTheme](#polaraxistheme)|[RadarAxisTheme](#radaraxistheme)| +|[RadiusAxisTheme](#radiusaxistheme)|[SerieTheme](#serietheme)|[SubTitleTheme](#subtitletheme)|[Theme](#theme)| +|[ThemeStyle](#themestyle)|[TitleTheme](#titletheme)|[TooltipTheme](#tooltiptheme)|[VisualMapTheme](#visualmaptheme)| ## MainComponent 主组件 -- [AngleAxis](#AngleAxis) -- [Axis](#Axis) -- [Background](#Background) -- [CalendarCoord](#CalendarCoord) -- [Comment](#Comment) -- [CoordSystem](#CoordSystem) -- [DataZoom](#DataZoom) -- [GridCoord](#GridCoord) -- [Legend](#Legend) -- [MarkArea](#MarkArea) -- [MarkLine](#MarkLine) -- [ParallelAxis](#ParallelAxis) -- [ParallelCoord](#ParallelCoord) -- [PolarCoord](#PolarCoord) -- [RadarCoord](#RadarCoord) -- [RadiusAxis](#RadiusAxis) -- [Settings](#Settings) -- [SingleAxis](#SingleAxis) -- [SingleAxisCoord](#SingleAxisCoord) -- [Title](#Title) -- [Tooltip](#Tooltip) -- [VisualMap](#VisualMap) -- [XAxis](#XAxis) -- [YAxis](#YAxis) +||||| +|--|--|--|--| +|[AngleAxis](#angleaxis)|[Axis](#axis)|[Background](#background)|[CalendarCoord](#calendarcoord)| +|[Comment](#comment)|[CoordSystem](#coordsystem)|[DataZoom](#datazoom)|[GridCoord](#gridcoord)| +|[Legend](#legend)|[MarkArea](#markarea)|[MarkLine](#markline)|[ParallelAxis](#parallelaxis)| +|[ParallelCoord](#parallelcoord)|[PolarCoord](#polarcoord)|[RadarCoord](#radarcoord)|[RadiusAxis](#radiusaxis)| +|[Settings](#settings)|[SingleAxis](#singleaxis)|[SingleAxisCoord](#singleaxiscoord)|[Title](#title)| +|[Tooltip](#tooltip)|[VisualMap](#visualmap)|[XAxis](#xaxis)|[YAxis](#yaxis)| ## ChildComponent 子组件 -- [AngleAxisTheme](#AngleAxisTheme) -- [AnimationStyle](#AnimationStyle) -- [AreaStyle](#AreaStyle) -- [ArrowStyle](#ArrowStyle) -- [AxisLabel](#AxisLabel) -- [AxisLine](#AxisLine) -- [AxisMinorSplitLine](#AxisMinorSplitLine) -- [AxisMinorTick](#AxisMinorTick) -- [AxisName](#AxisName) -- [AxisSplitArea](#AxisSplitArea) -- [AxisSplitLine](#AxisSplitLine) -- [AxisTheme](#AxisTheme) -- [AxisTick](#AxisTick) -- [BaseAxisTheme](#BaseAxisTheme) -- [BaseLine](#BaseLine) -- [BlurStyle](#BlurStyle) -- [CommentItem](#CommentItem) -- [CommentMarkStyle](#CommentMarkStyle) -- [ComponentTheme](#ComponentTheme) -- [DataZoomTheme](#DataZoomTheme) -- [EmphasisStyle](#EmphasisStyle) -- [EndLabelStyle](#EndLabelStyle) -- [IconStyle](#IconStyle) -- [ImageStyle](#ImageStyle) -- [ItemStyle](#ItemStyle) -- [LabelLine](#LabelLine) -- [LabelStyle](#LabelStyle) -- [LegendTheme](#LegendTheme) -- [Level](#Level) -- [LevelStyle](#LevelStyle) -- [LineArrow](#LineArrow) -- [LineStyle](#LineStyle) -- [Location](#Location) -- [MarkAreaData](#MarkAreaData) -- [MarkLineData](#MarkLineData) -- [Padding](#Padding) -- [PolarAxisTheme](#PolarAxisTheme) -- [RadarAxisTheme](#RadarAxisTheme) -- [RadiusAxisTheme](#RadiusAxisTheme) -- [SelectStyle](#SelectStyle) -- [SerieData](#SerieData) -- [SerieSymbol](#SerieSymbol) -- [SerieTheme](#SerieTheme) -- [StageColor](#StageColor) -- [StateStyle](#StateStyle) -- [SubTitleTheme](#SubTitleTheme) -- [SymbolStyle](#SymbolStyle) -- [TextLimit](#TextLimit) -- [TextPadding](#TextPadding) -- [TextStyle](#TextStyle) -- [ThemeStyle](#ThemeStyle) -- [TitleStyle](#TitleStyle) -- [TitleTheme](#TitleTheme) -- [TooltipTheme](#TooltipTheme) -- [VisualMapRange](#VisualMapRange) -- [VisualMapTheme](#VisualMapTheme) +||||| +|--|--|--|--| +|[AngleAxisTheme](#angleaxistheme)|[AnimationStyle](#animationstyle)|[AreaStyle](#areastyle)|[ArrowStyle](#arrowstyle)| +|[AxisLabel](#axislabel)|[AxisLine](#axisline)|[AxisMinorSplitLine](#axisminorsplitline)|[AxisMinorTick](#axisminortick)| +|[AxisName](#axisname)|[AxisSplitArea](#axissplitarea)|[AxisSplitLine](#axissplitline)|[AxisTheme](#axistheme)| +|[AxisTick](#axistick)|[BaseAxisTheme](#baseaxistheme)|[BaseLine](#baseline)|[BlurStyle](#blurstyle)| +|[CommentItem](#commentitem)|[CommentMarkStyle](#commentmarkstyle)|[ComponentTheme](#componenttheme)|[DataZoomTheme](#datazoomtheme)| +|[EmphasisStyle](#emphasisstyle)|[EndLabelStyle](#endlabelstyle)|[IconStyle](#iconstyle)|[ImageStyle](#imagestyle)| +|[ItemStyle](#itemstyle)|[LabelLine](#labelline)|[LabelStyle](#labelstyle)|[LegendTheme](#legendtheme)| +|[Level](#level)|[LevelStyle](#levelstyle)|[LineArrow](#linearrow)|[LineStyle](#linestyle)| +|[Location](#location)|[MarkAreaData](#markareadata)|[MarkLineData](#marklinedata)|[MarqueeStyle](#marqueestyle)| +|[Padding](#padding)|[PolarAxisTheme](#polaraxistheme)|[RadarAxisTheme](#radaraxistheme)|[RadiusAxisTheme](#radiusaxistheme)| +|[SelectStyle](#selectstyle)|[SerieData](#seriedata)|[SerieSymbol](#seriesymbol)|[SerieTheme](#serietheme)| +|[StageColor](#stagecolor)|[StateStyle](#statestyle)|[SubTitleTheme](#subtitletheme)|[SymbolStyle](#symbolstyle)| +|[TextLimit](#textlimit)|[TextPadding](#textpadding)|[TextStyle](#textstyle)|[ThemeStyle](#themestyle)| +|[TitleStyle](#titlestyle)|[TitleTheme](#titletheme)|[TooltipTheme](#tooltiptheme)|[VisualMapRange](#visualmaprange)| +|[VisualMapTheme](#visualmaptheme)| -## ISerieExtraComponent Serie额外组件 +## ISerieExtraComponent 系列的额外组件 -- [AreaStyle](#AreaStyle) -- [BlurStyle](#BlurStyle) -- [EmphasisStyle](#EmphasisStyle) -- [ImageStyle](#ImageStyle) -- [LabelLine](#LabelLine) -- [LabelStyle](#LabelStyle) -- [LineArrow](#LineArrow) -- [SelectStyle](#SelectStyle) -- [TitleStyle](#TitleStyle) +||||| +|--|--|--|--| +|[AreaStyle](#areastyle)|[BlurStyle](#blurstyle)|[EmphasisStyle](#emphasisstyle)|[ImageStyle](#imagestyle)| +|[LabelLine](#labelline)|[LabelStyle](#labelstyle)|[LineArrow](#linearrow)|[SelectStyle](#selectstyle)| +|[TitleStyle](#titlestyle)| -## ISerieDataComponent SerieData额外组件 +## ISerieDataComponent 数据项的额外组件 -- [AreaStyle](#AreaStyle) -- [BlurStyle](#BlurStyle) -- [EmphasisStyle](#EmphasisStyle) -- [ImageStyle](#ImageStyle) -- [ItemStyle](#ItemStyle) -- [LabelLine](#LabelLine) -- [LabelStyle](#LabelStyle) -- [LineStyle](#LineStyle) -- [SelectStyle](#SelectStyle) -- [SerieSymbol](#SerieSymbol) -- [TitleStyle](#TitleStyle) +||||| +|--|--|--|--| +|[AreaStyle](#areastyle)|[BlurStyle](#blurstyle)|[EmphasisStyle](#emphasisstyle)|[ImageStyle](#imagestyle)| +|[ItemStyle](#itemstyle)|[LabelLine](#labelline)|[LabelStyle](#labelstyle)|[LineStyle](#linestyle)| +|[SelectStyle](#selectstyle)|[SerieSymbol](#seriesymbol)|[TitleStyle](#titlestyle)| -## Other 其他 +## Other 其他组件 -- [BaseSerie](#BaseSerie) -- [ChartText](#ChartText) -- [ChildComponent](#ChildComponent) -- [DebugInfo](#DebugInfo) -- [Indicator](#Indicator) -- [Lang](#Lang) -- [LangCandlestick](#LangCandlestick) -- [LangTime](#LangTime) -- [MainComponent](#MainComponent) -- [XCResourcesImporter](#XCResourcesImporter) -- [XCSettings](#XCSettings) +||||| +|--|--|--|--| +|[BaseSerie](#baseserie)|[ChartText](#charttext)|[ChildComponent](#childcomponent)|[DebugInfo](#debuginfo)| +|[Indicator](#indicator)|[Lang](#lang)|[LangCandlestick](#langcandlestick)|[LangTime](#langtime)| +|[MainComponent](#maincomponent)|[XCResourcesImporter](#xcresourcesimporter)|[XCSettings](#xcsettings)| ## AngleAxis -Inherits or Implemented: [Axis](#Axis) +Inherits or Implemented: [Axis](#axis) 极坐标系的角度轴。 @@ -179,19 +90,19 @@ Inherits or Implemented: [Axis](#Axis) ## AngleAxisTheme -Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) +Inherits or Implemented: [BaseAxisTheme](#baseaxistheme) ## AnimationStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 动画表现。 |field|default|since|comment| |--|--|--|--| |enable|true||是否开启动画效果。 -|type|||动画类型。
`AnimationType`:
- `Default`: 默认。内部会根据实际情况选择一种动画播放方式。
- `LeftToRight`: 从左往右播放动画。
- `BottomToTop`: 从下往上播放动画。
- `InsideOut`: 由内到外播放动画。
- `AlongPath`: 沿着路径播放动画。
- `Clockwise`: 顺时针播放动画。
| +|type|||动画类型。
`AnimationType`:
- `Default`: 默认。内部会根据实际情况选择一种动画播放方式。
- `LeftToRight`: 从左往右播放动画。
- `BottomToTop`: 从下往上播放动画。
- `InsideOut`: 由内到外播放动画。
- `AlongPath`: 沿着路径播放动画。当折线图从左到右无序或有折返时,可以使用该模式。
- `Clockwise`: 顺时针播放动画。
| |easting|||动画的缓动效果。
`AnimationEasing`:
- `Linear`:
| |threshold|2000||是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。 |fadeInDuration|1000||设定的渐入动画时长(毫秒)。如果要设置单个数据项的渐入时长,可以用代码定制:customFadeInDuration。 @@ -205,7 +116,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## AreaStyle -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) 区域填充样式。 @@ -220,7 +131,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent ## ArrowStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -232,7 +143,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## Axis -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) 直角坐标系的坐标轴组件。 @@ -260,19 +171,19 @@ Inherits or Implemented: [MainComponent](#MainComponent) |insertDataToHead|||添加新数据时是在列表的头部还是尾部加入。 |icons|||类目数据对应的图标。 |data|||类目数据,在类目轴(type: 'category')中有效。 -|axisLine|||坐标轴轴线。 [AxisLine](#AxisLine)| -|axisName|||坐标轴名称。 [AxisName](#AxisName)| -|axisTick|||坐标轴刻度。 [AxisTick](#AxisTick)| -|axisLabel|||坐标轴刻度标签。 [AxisLabel](#AxisLabel)| -|splitLine|||坐标轴分割线。 [AxisSplitLine](#AxisSplitLine)| -|splitArea|||坐标轴分割区域。 [AxisSplitArea](#AxisSplitArea)| -|minorTick||v3.2.0|坐标轴次刻度。 [AxisMinorTick](#AxisMinorTick)| -|minorSplitLine||v3.2.0|坐标轴次分割线。 [AxisMinorSplitLine](#AxisMinorSplitLine)| -|indicatorLabel||v3.4.0|指示器文本的样式。Tooltip为Cross时使用。 [LabelStyle](#LabelStyle)| +|axisLine|||坐标轴轴线。 [AxisLine](#axisline)| +|axisName|||坐标轴名称。 [AxisName](#axisname)| +|axisTick|||坐标轴刻度。 [AxisTick](#axistick)| +|axisLabel|||坐标轴刻度标签。 [AxisLabel](#axislabel)| +|splitLine|||坐标轴分割线。 [AxisSplitLine](#axissplitline)| +|splitArea|||坐标轴分割区域。 [AxisSplitArea](#axissplitarea)| +|minorTick||v3.2.0|坐标轴次刻度。 [AxisMinorTick](#axisminortick)| +|minorSplitLine||v3.2.0|坐标轴次分割线。 [AxisMinorSplitLine](#axisminorsplitline)| +|indicatorLabel||v3.4.0|指示器文本的样式。Tooltip为Cross时使用。 [LabelStyle](#labelstyle)| ## AxisLabel -Inherits or Implemented: [LabelStyle](#LabelStyle) +Inherits or Implemented: [LabelStyle](#labelstyle) 坐标轴刻度标签的相关设置。 @@ -284,11 +195,11 @@ Inherits or Implemented: [LabelStyle](#LabelStyle) |onZero|false||刻度标签显示在0刻度上。 |showStartLabel|true||是否显示第一个文本。 |showEndLabel|true||是否显示最后一个文本。 -|textLimit|||文本限制。 [TextLimit](#TextLimit)| +|textLimit|||文本限制。 [TextLimit](#textlimit)| ## AxisLine -Inherits or Implemented: [BaseLine](#BaseLine) +Inherits or Implemented: [BaseLine](#baseline) 坐标轴轴线。 @@ -296,11 +207,11 @@ Inherits or Implemented: [BaseLine](#BaseLine) |--|--|--|--| |onZero|||X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一个轴为数值轴且包含 0 刻度时有效。 |showArrow|||是否显示箭头。 -|arrow|||轴线箭头。 [ArrowStyle](#ArrowStyle)| +|arrow|||轴线箭头。 [ArrowStyle](#arrowstyle)| ## AxisMinorSplitLine -Inherits or Implemented: [BaseLine](#BaseLine) +Inherits or Implemented: [BaseLine](#baseline) > 从 `v3.2.0` 开始支持 @@ -313,7 +224,7 @@ Inherits or Implemented: [BaseLine](#BaseLine) ## AxisMinorTick -Inherits or Implemented: [BaseLine](#BaseLine) +Inherits or Implemented: [BaseLine](#baseline) > 从 `v3.2.0` 开始支持 @@ -326,7 +237,7 @@ Inherits or Implemented: [BaseLine](#BaseLine) ## AxisName -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 坐标轴名称。 @@ -335,11 +246,11 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |show|||是否显示坐标轴名称。 |name|||坐标轴名称。 |onZero||v3.1.0|坐标轴名称的位置是否保持和Y轴0刻度一致。 -|labelStyle|||文本样式。 [LabelStyle](#LabelStyle)| +|labelStyle|||文本样式。 [LabelStyle](#labelstyle)| ## AxisSplitArea -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 坐标轴在 grid 区域中的分隔区域,默认不显示。 @@ -350,7 +261,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## AxisSplitLine -Inherits or Implemented: [BaseLine](#BaseLine) +Inherits or Implemented: [BaseLine](#baseline) 坐标轴在 grid 区域中的分隔线。 @@ -364,12 +275,12 @@ Inherits or Implemented: [BaseLine](#BaseLine) ## AxisTheme -Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) +Inherits or Implemented: [BaseAxisTheme](#baseaxistheme) ## AxisTick -Inherits or Implemented: [BaseLine](#BaseLine) +Inherits or Implemented: [BaseLine](#baseline) 坐标轴刻度相关设置。 @@ -385,7 +296,7 @@ Inherits or Implemented: [BaseLine](#BaseLine) ## Background -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) 背景组件。 @@ -399,12 +310,12 @@ Inherits or Implemented: [MainComponent](#MainComponent) ## Bar -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) ## BaseAxisTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) |field|default|since|comment| |--|--|--|--| @@ -424,18 +335,18 @@ Inherits or Implemented: [ComponentTheme](#ComponentTheme) ## BaseLine -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 线条基础配置。 |field|default|since|comment| |--|--|--|--| |show|||是否显示坐标轴轴线。 -|lineStyle|||线条样式 [LineStyle](#LineStyle)| +|lineStyle|||线条样式 [LineStyle](#linestyle)| ## BaseScatter -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) ## BaseSerie @@ -443,7 +354,7 @@ Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContai ## BlurStyle -Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [StateStyle](#statestyle),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) > 从 `v3.2.0` 开始支持 @@ -452,12 +363,12 @@ Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISeri ## CalendarCoord -Inherits or Implemented: [CoordSystem](#CoordSystem),[IUpdateRuntimeData](#IUpdateRuntimeData),[ISerieContainer](#ISerieContainer) +Inherits or Implemented: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) ## Candlestick -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) ## ChartText @@ -468,20 +379,20 @@ Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContai ## Comment -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) 图表注解组件。 |field|default|since|comment| |--|--|--|--| |show|true||是否显示注解组件。 -|labelStyle|||所有组件的文本样式。 [LabelStyle](#LabelStyle)| -|markStyle|||所有组件的文本样式。 [CommentMarkStyle](#CommentMarkStyle)| +|labelStyle|||所有组件的文本样式。 [LabelStyle](#labelstyle)| +|markStyle|||所有组件的文本样式。 [CommentMarkStyle](#commentmarkstyle)| |items|||注解项。每个注解组件可以设置多个注解项。 ## CommentItem -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 注解项。 @@ -489,25 +400,25 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |--|--|--|--| |show|true||是否显示当前注解项。 |content|||注解的文本内容。支持模板参数,可以参考Tooltip的itemFormatter。 -|position|||注解项的位置坐标。 |markRect|||注解区域。 -|markStyle|||注解标记区域样式。 [CommentMarkStyle](#CommentMarkStyle)| -|labelStyle|||注解项的文本样式。 [LabelStyle](#LabelStyle)| +|markStyle|||注解标记区域样式。 [CommentMarkStyle](#commentmarkstyle)| +|labelStyle|||注解项的文本样式。 [LabelStyle](#labelstyle)| +|location||v3.5.0|Comment显示的位置。 [Location](#location)| ## CommentMarkStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 注解项区域样式。 |field|default|since|comment| |--|--|--|--| |show|true||是否显示当前注解项。 -|lineStyle|||线条样式。 [LineStyle](#LineStyle)| +|lineStyle|||线条样式。 [LineStyle](#linestyle)| ## ComponentTheme -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -519,14 +430,14 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## CoordSystem -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) 坐标系系统。 ## DataZoom -Inherits or Implemented: [MainComponent](#MainComponent),[IUpdateRuntimeData](#IUpdateRuntimeData) +Inherits or Implemented: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata) DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息,或者概览数据整体,或者去除离群点的影响。 @@ -540,7 +451,7 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 |supportInsideScroll|true||是否支持坐标系内滚动 |supportInsideDrag|true||是否支持坐标系内拖拽 |supportSlider|||是否支持滑动条。有单独的滑动条,用户在滑动条上进行缩放或漫游。 -|supportSelect|||是否支持框选。提供一个选框进行数据区域缩放。 +|supportMarquee|||是否支持框选。提供一个选框进行数据区域缩放。 |showDataShadow|||是否显示数据阴影。数据阴影可以简单地反应数据走势。 |showDetail|||是否显示detail,即拖拽时候显示详细数值信息。 |zoomLock|||是否锁定选择区域(或叫做数据窗口)的大小。 如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。 @@ -558,13 +469,14 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 |minShowNum|1||最小显示数据个数。当DataZoom放大到最大时,最小显示的数据个数。 |scrollSensitivity|1.1f||缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。 |orient|||布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|labelStyle|||文本标签格式。 [LabelStyle](#LabelStyle)| -|lineStyle|||阴影线条样式。 [LineStyle](#LineStyle)| -|areaStyle|||阴影填充样式。 [AreaStyle](#AreaStyle)| +|labelStyle|||文本标签格式。 [LabelStyle](#labelstyle)| +|lineStyle|||阴影线条样式。 [LineStyle](#linestyle)| +|areaStyle|||阴影填充样式。 [AreaStyle](#areastyle)| +|marqueeStyle||v3.5.0|选取框样式。 [MarqueeStyle](#marqueestyle)| ## DataZoomTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) |field|default|since|comment| |--|--|--|--| @@ -584,16 +496,16 @@ Inherits or Implemented: [ComponentTheme](#ComponentTheme) |showDebugInfo|false|| |showAllChartObject|false||是否在Hierarchy试图显示所有chart下的节点。 |foldSeries|false||是否在Inspector上折叠Serie。 -|labelStyle||| [LabelStyle](#LabelStyle)| +|labelStyle||| [LabelStyle](#labelstyle)| ## EffectScatter -Inherits or Implemented: [BaseScatter](#BaseScatter) +Inherits or Implemented: [BaseScatter](#basescatter) ## EmphasisStyle -Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [StateStyle](#statestyle),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) > 从 `v3.2.0` 开始支持 @@ -607,12 +519,12 @@ Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISeri ## EndLabelStyle -Inherits or Implemented: [LabelStyle](#LabelStyle) +Inherits or Implemented: [LabelStyle](#labelstyle) ## GridCoord -Inherits or Implemented: [CoordSystem](#CoordSystem),[IUpdateRuntimeData](#IUpdateRuntimeData),[ISerieContainer](#ISerieContainer) +Inherits or Implemented: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid. @@ -630,7 +542,7 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart ## Heatmap -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) |field|default|since|comment| |--|--|--|--| @@ -638,7 +550,7 @@ Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContai ## IconStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -655,7 +567,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## ImageStyle -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) |field|default|since|comment| |--|--|--|--| @@ -682,10 +594,10 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent |radius|100||雷达图的半径。 |splitNumber|5||指示器轴的分割段数。 |center|||雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。 -|axisLine|||轴线。 [AxisLine](#AxisLine)| -|axisName|||雷达图每个指示器名称的配置项。 [AxisName](#AxisName)| -|splitLine|||分割线。 [AxisSplitLine](#AxisSplitLine)| -|splitArea|||分割区域。 [AxisSplitArea](#AxisSplitArea)| +|axisLine|||轴线。 [AxisLine](#axisline)| +|axisName|||雷达图每个指示器名称的配置项。 [AxisName](#axisname)| +|splitLine|||分割线。 [AxisSplitLine](#axissplitline)| +|splitArea|||分割区域。 [AxisSplitArea](#axissplitarea)| |indicator|true||是否显示指示器。 |positionType|||显示位置类型。 |indicatorGap|10||指示器和雷达的间距。 @@ -699,7 +611,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent ## ItemStyle -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent) 图形样式。 @@ -727,7 +639,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent] ## LabelLine -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) 标签的引导线 @@ -741,12 +653,12 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent |lineGap|1.0f||视觉引导线和容器的间距。 |lineLength1|25f||视觉引导线第一段的长度。 |lineLength2|15f||视觉引导线第二段的长度。 -|startSymbol|||起始点的图形标记。 [SymbolStyle](#SymbolStyle)| -|endSymbol|||结束点的图形标记。 [SymbolStyle](#SymbolStyle)| +|startSymbol|||起始点的图形标记。 [SymbolStyle](#symbolstyle)| +|endSymbol|||结束点的图形标记。 [SymbolStyle](#symbolstyle)| ## LabelStyle -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) 图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。 @@ -762,14 +674,14 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent |numericFormatter|||标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings |width|0||标签的宽度。一般不用指定,不指定时则自动是文字的宽度。 |height|0||标签的高度。一般不用指定,不指定时则自动是文字的高度。 -|icon|||图标样式。 [IconStyle](#IconStyle)| -|background|||背景图样式。 [ImageStyle](#ImageStyle)| -|textPadding|||文本的边距。 [TextPadding](#TextPadding)| -|textStyle|||文本样式。 [TextStyle](#TextStyle)| +|icon|||图标样式。 [IconStyle](#iconstyle)| +|background|||背景图样式。 [ImageStyle](#imagestyle)| +|textPadding|||文本的边距。 [TextPadding](#textpadding)| +|textStyle|||文本样式。 [TextStyle](#textstyle)| ## Lang -Inherits or Implemented: [ScriptableObject](#ScriptableObject) +Inherits or Implemented: [ScriptableObject](#scriptableobject) 国际化语言表。 @@ -782,7 +694,7 @@ Inherits or Implemented: [ScriptableObject](#ScriptableObject) ## Legend -Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPropertyChanged) +Inherits or Implemented: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) 图例组件。 图例组件展现了不同系列的标记,颜色和名字。可以通过点击图例控制哪些系列不显示。 @@ -792,7 +704,7 @@ Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPr |iconType|||图例类型。
`Legend.Type`:
- `Auto`: 自动匹配。
- `Custom`: 自定义图标。
- `EmptyCircle`: 空心圆。
- `Circle`: 圆形。
- `Rect`: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。
- `Triangle`: 三角形。
- `Diamond`: 菱形。
- `Candlestick`: 烛台(可用于K线图)。
| |selectedMode|||选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
`Legend.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
- `None`: 无法选择。
| |orient|||布局方式是横还是竖。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|location|||图例显示的位置。 [Location](#Location)| +|location|||图例显示的位置。 [Location](#location)| |itemWidth|25.0f||图例标记的图形宽度。 |itemHeight|12.0f||图例标记的图形高度。 |itemGap|10f||图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。 @@ -800,16 +712,16 @@ Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPr |itemOpacity|1||图例标记的图形的颜色透明度。 |formatter|||图例内容字符串模版格式器。支持用 \n 换行。 模板变量为图例名称 {value}。其他模板变量参考Toolip的itemFormatter。 |numericFormatter|||标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings -|labelStyle|||文本样式。 [LabelStyle](#LabelStyle)| +|labelStyle|||文本样式。 [LabelStyle](#labelstyle)| |data|||图例的数据数组。数组项通常为一个字符串,每一项代表一个系列的 name(如果是饼图,也可以是饼图单个数据的 name)。 如果 data 没有被指定,会自动从当前系列中获取。指定data时里面的数据项和serie匹配时才会生效。 |icons|||自定义的图例标记图形。 |colors|||图例标记的颜色列表。 -|background||v3.1.0|背景图样式。 [ImageStyle](#ImageStyle)| -|padding||v3.1.0|图例标记和背景的间距。 [Padding](#Padding)| +|background||v3.1.0|背景图样式。 [ImageStyle](#imagestyle)| +|padding||v3.1.0|图例标记和背景的间距。 [Padding](#padding)| ## LegendTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) |field|default|since|comment| |--|--|--|--| @@ -817,17 +729,17 @@ Inherits or Implemented: [ComponentTheme](#ComponentTheme) ## Level -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| -|label|||文本标签样式。 [LabelStyle](#LabelStyle)| -|upperLabel|||上方的文本标签样式。 [LabelStyle](#LabelStyle)| -|itemStyle|||数据项样式。 [ItemStyle](#ItemStyle)| +|label|||文本标签样式。 [LabelStyle](#labelstyle)| +|upperLabel|||上方的文本标签样式。 [LabelStyle](#labelstyle)| +|itemStyle|||数据项样式。 [ItemStyle](#itemstyle)| ## LevelStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -836,22 +748,22 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## Line -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) ## LineArrow -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieExtraComponent](#ISerieExtraComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieExtraComponent](#iserieextracomponent) |field|default|since|comment| |--|--|--|--| |show|||是否显示箭头。 |position|||箭头位置。
`LineArrow.Position`:
- `End`: 末端箭头
- `Start`: 头端箭头
| -|arrow|||箭头。 [ArrowStyle](#ArrowStyle)| +|arrow|||箭头。 [ArrowStyle](#arrowstyle)| ## LineStyle -Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent) 线条样式。 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取该颜色。 toColor,toColor2可设置水平方向的渐变,如需要设置垂直方向的渐变,可使用VisualMap。 @@ -868,7 +780,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[ISerieDataComponent] ## Location -Inherits or Implemented: [ChildComponent](#ChildComponent),[IPropertyChanged](#IPropertyChanged) +Inherits or Implemented: [ChildComponent](#childcomponent),[IPropertyChanged](#ipropertychanged) 位置类型。通过Align快速设置大体位置,再通过left,right,top,bottom微调具体位置。 @@ -882,12 +794,12 @@ Inherits or Implemented: [ChildComponent](#ChildComponent),[IPropertyChanged](#I ## MainComponent -Inherits or Implemented: [IComparable](#IComparable) +Inherits or Implemented: [IComparable](#icomparable) ## MarkArea -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) 图表标域,常用于标记图表中某个范围的数据。 @@ -896,14 +808,14 @@ Inherits or Implemented: [MainComponent](#MainComponent) |show|true||是否显示标域。 |text|||The text of markArea. 标域显示的文本。 |serieIndex|0||Serie index of markArea. 标域影响的Serie索引。 -|start|||标域范围的起始数据。 [MarkAreaData](#MarkAreaData)| -|end|||标域范围的结束数据。 [MarkAreaData](#MarkAreaData)| -|itemStyle|||标域样式。 [ItemStyle](#ItemStyle)| -|label|||标域文本样式。 [LabelStyle](#LabelStyle)| +|start|||标域范围的起始数据。 [MarkAreaData](#markareadata)| +|end|||标域范围的结束数据。 [MarkAreaData](#markareadata)| +|itemStyle|||标域样式。 [ItemStyle](#itemstyle)| +|label|||标域文本样式。 [LabelStyle](#labelstyle)| ## MarkAreaData -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 标域的数据。 @@ -919,7 +831,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## MarkLine -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) 图表标线。 @@ -927,12 +839,12 @@ Inherits or Implemented: [MainComponent](#MainComponent) |--|--|--|--| |show|true||是否显示标线。 |serieIndex|0||标线影响的Serie索引。 -|animation|||标线的动画样式。 [AnimationStyle](#AnimationStyle)| +|animation|||标线的动画样式。 [AnimationStyle](#animationstyle)| |data|||标线的数据列表。当数据项的group为0时,每个数据项表示一条标线;当group不为0时,相同group的两个数据项分别表 示标线的起始点和终止点来组成一条标线,此时标线的相关样式参数取起始点的参数。 ## MarkLineData -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 图表标线的数据。 @@ -947,14 +859,29 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) |yValue|||Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 |group|0||分组。当group不为0时,表示这个data是标线的起点或终点,group一致的data组成一条标线。 |zeroPosition|false||是否为坐标系原点。 -|startSymbol|||起始点的图形标记。 [SymbolStyle](#SymbolStyle)| -|endSymbol|||结束点的图形标记。 [SymbolStyle](#SymbolStyle)| -|lineStyle|||标线样式。 [LineStyle](#LineStyle)| -|label|||文本样式。可设置position为Start、Middle和End在不同的位置显示文本。 [LabelStyle](#LabelStyle)| +|startSymbol|||起始点的图形标记。 [SymbolStyle](#symbolstyle)| +|endSymbol|||结束点的图形标记。 [SymbolStyle](#symbolstyle)| +|lineStyle|||标线样式。 [LineStyle](#linestyle)| +|label|||文本样式。可设置position为Start、Middle和End在不同的位置显示文本。 [LabelStyle](#labelstyle)| + +## MarqueeStyle + +Inherits or Implemented: [ChildComponent](#childcomponent) + +> 从 `v3.5.0` 开始支持 + +Marquee style. It can be used for the DataZoom component. 选取框样式。可用于DataZoom组件。 + +|field|default|since|comment| +|--|--|--|--| +|apply|false|v3.5.0|选取框范围是否应用到DataZoom上。当为true时,框选结束后的范围即为DataZoom的选择范围。 +|realRect|false|v3.5.0|是否选取实际框选区域。当为true时,以鼠标的其实点和结束点间的实际范围作为框选区域。 +|areaStyle||v3.5.0|选取框区域填充样式。 [AreaStyle](#areastyle)| +|lineStyle||v3.5.0|选取框区域边框样式。 [LineStyle](#linestyle)| ## Padding -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 边距设置。 @@ -968,17 +895,17 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## Parallel -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) ## ParallelAxis -Inherits or Implemented: [Axis](#Axis) +Inherits or Implemented: [Axis](#axis) ## ParallelCoord -Inherits or Implemented: [CoordSystem](#CoordSystem),[IUpdateRuntimeData](#IUpdateRuntimeData),[ISerieContainer](#ISerieContainer) +Inherits or Implemented: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid. @@ -994,17 +921,17 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart ## Pie -Inherits or Implemented: [Serie](#Serie) +Inherits or Implemented: [Serie](#serie) ## PolarAxisTheme -Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) +Inherits or Implemented: [BaseAxisTheme](#baseaxistheme) ## PolarCoord -Inherits or Implemented: [CoordSystem](#CoordSystem),[ISerieContainer](#ISerieContainer) +Inherits or Implemented: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer) 极坐标系组件。 极坐标系,可以用于散点图和折线图。每个极坐标系拥有一个角度轴和一个半径轴。 @@ -1017,7 +944,7 @@ Inherits or Implemented: [CoordSystem](#CoordSystem),[ISerieContainer](#ISerieCo ## Radar -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) |field|default|since|comment| |--|--|--|--| @@ -1025,41 +952,41 @@ Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContai ## RadarAxisTheme -Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) +Inherits or Implemented: [BaseAxisTheme](#baseaxistheme) ## RadarCoord -Inherits or Implemented: [CoordSystem](#CoordSystem),[ISerieContainer](#ISerieContainer) +Inherits or Implemented: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer) Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。 ## RadiusAxis -Inherits or Implemented: [Axis](#Axis) +Inherits or Implemented: [Axis](#axis) 极坐标系的径向轴。 ## RadiusAxisTheme -Inherits or Implemented: [BaseAxisTheme](#BaseAxisTheme) +Inherits or Implemented: [BaseAxisTheme](#baseaxistheme) ## Ring -Inherits or Implemented: [Serie](#Serie) +Inherits or Implemented: [Serie](#serie) ## Scatter -Inherits or Implemented: [BaseScatter](#BaseScatter) +Inherits or Implemented: [BaseScatter](#basescatter) ## SelectStyle -Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISerieExtraComponent),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [StateStyle](#statestyle),[ISerieExtraComponent](#iserieextracomponent),[ISerieDataComponent](#iseriedatacomponent) > 从 `v3.2.0` 开始支持 @@ -1068,7 +995,7 @@ Inherits or Implemented: [StateStyle](#StateStyle),[ISerieExtraComponent](#ISeri ## Serie -Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable) +Inherits or Implemented: [BaseSerie](#baseserie),[IComparable](#icomparable) 系列。 @@ -1101,6 +1028,7 @@ Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable) |barType|||柱形图类型。
`BarType`:
- `Normal`: 普通柱形图。
- `Zebra`: 斑马柱形图。
- `Capsule`: 胶囊柱形图。
| |barPercentStack|false||柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 |barWidth|0||柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。 +|barMaxWidth|0|v3.5.0|柱条的最大宽度,默认为0为不限制最大宽度。支持设置成相对于类目宽度的百分比。 |barGap|0.1f||不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30%) 如果想要两个系列的柱子重叠,可以设置 barGap 为 '-1f'。这在用柱子做背景的时候有用。 在同一坐标系上,此属性会被多个 'bar' 系列共享。此属性应设置于此坐标系中最后一个 'bar' 系列上才会生效,并且是对此坐标系中所有 'bar' 系列生效。 |barZebraWidth|4f||斑马线的粗细。 |barZebraGap|2f||斑马线的间距。 @@ -1139,15 +1067,15 @@ Inherits or Implemented: [BaseSerie](#BaseSerie),[IComparable](#IComparable) |top|||组件离容器上侧的距离。 |bottom|||组件离容器下侧的距离。 |insertDataToHead|||添加新数据时是在列表的头部还是尾部加入。 -|lineStyle|||线条样式。 [LineStyle](#LineStyle)| -|symbol|||标记的图形。 [SerieSymbol](#SerieSymbol)| -|animation|||起始动画。 [AnimationStyle](#AnimationStyle)| -|itemStyle|||图形样式。 [ItemStyle](#ItemStyle)| +|lineStyle|||线条样式。 [LineStyle](#linestyle)| +|symbol|||标记的图形。 [SerieSymbol](#seriesymbol)| +|animation|||起始动画。 [AnimationStyle](#animationstyle)| +|itemStyle|||图形样式。 [ItemStyle](#itemstyle)| |data|||系列中的数据内容数组。SerieData可以设置1到n维数据。 ## SerieData -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 系列中的一个数据项。可存储数据名和1-n维个数据。 @@ -1165,7 +1093,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## SerieSymbol -Inherits or Implemented: [SymbolStyle](#SymbolStyle),[ISerieDataComponent](#ISerieDataComponent) +Inherits or Implemented: [SymbolStyle](#symbolstyle),[ISerieDataComponent](#iseriedatacomponent) 系列数据项的标记的图形 @@ -1184,7 +1112,7 @@ Inherits or Implemented: [SymbolStyle](#SymbolStyle),[ISerieDataComponent](#ISer ## SerieTheme -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -1202,7 +1130,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## Settings -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) 全局参数设置组件。一般情况下可使用默认值,当有需要时可进行调整。 @@ -1225,22 +1153,22 @@ Inherits or Implemented: [MainComponent](#MainComponent) ## SimplifiedBar -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer),[ISimplifiedSerie](#ISimplifiedSerie) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) ## SimplifiedCandlestick -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer),[ISimplifiedSerie](#ISimplifiedSerie) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) ## SimplifiedLine -Inherits or Implemented: [Serie](#Serie),[INeedSerieContainer](#INeedSerieContainer),[ISimplifiedSerie](#ISimplifiedSerie) +Inherits or Implemented: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) ## SingleAxis -Inherits or Implemented: [Axis](#Axis),[IUpdateRuntimeData](#IUpdateRuntimeData) +Inherits or Implemented: [Axis](#axis),[IUpdateRuntimeData](#iupdateruntimedata) 单轴。 @@ -1256,12 +1184,12 @@ Inherits or Implemented: [Axis](#Axis),[IUpdateRuntimeData](#IUpdateRuntimeData) ## SingleAxisCoord -Inherits or Implemented: [CoordSystem](#CoordSystem) +Inherits or Implemented: [CoordSystem](#coordsystem) ## StageColor -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -1270,7 +1198,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## StateStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) > 从 `v3.2.0` 开始支持 @@ -1279,21 +1207,21 @@ Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种 |field|default|since|comment| |--|--|--|--| |show|true||是否启用高亮样式。 -|label|||图形文本标签。 [LabelStyle](#LabelStyle)| -|labelLine|||图形文本引导线样式。 [LabelLine](#LabelLine)| -|itemStyle|||图形样式。 [ItemStyle](#ItemStyle)| -|lineStyle|||折线样式。 [LineStyle](#LineStyle)| -|areaStyle|||区域样式。 [AreaStyle](#AreaStyle)| -|symbol|||标记样式。 [SerieSymbol](#SerieSymbol)| +|label|||图形文本标签。 [LabelStyle](#labelstyle)| +|labelLine|||图形文本引导线样式。 [LabelLine](#labelline)| +|itemStyle|||图形样式。 [ItemStyle](#itemstyle)| +|lineStyle|||折线样式。 [LineStyle](#linestyle)| +|areaStyle|||区域样式。 [AreaStyle](#areastyle)| +|symbol|||标记样式。 [SerieSymbol](#seriesymbol)| ## SubTitleTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) ## SymbolStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 系列数据项的标记的图形 @@ -1312,7 +1240,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## TextLimit -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 文本字符限制和自适应。当文本长度超过设定的长度时进行裁剪,并将后缀附加在最后。 只在类目轴中有效。 @@ -1325,14 +1253,14 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## TextPadding -Inherits or Implemented: [Padding](#Padding) +Inherits or Implemented: [Padding](#padding) 文本的内边距设置。 ## TextStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 文本的相关设置。 @@ -1356,7 +1284,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## Theme -Inherits or Implemented: [ScriptableObject](#ScriptableObject) +Inherits or Implemented: [ScriptableObject](#scriptableobject) 主题相关配置。 @@ -1369,26 +1297,26 @@ Inherits or Implemented: [ScriptableObject](#ScriptableObject) |contrastColor|||对比色。 |backgroundColor|||背景颜色。 |colorPalette|||调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。 -|common||| [ComponentTheme](#ComponentTheme)| -|title||| [TitleTheme](#TitleTheme)| -|subTitle||| [SubTitleTheme](#SubTitleTheme)| -|legend||| [LegendTheme](#LegendTheme)| -|axis||| [AxisTheme](#AxisTheme)| -|tooltip||| [TooltipTheme](#TooltipTheme)| -|dataZoom||| [DataZoomTheme](#DataZoomTheme)| -|visualMap||| [VisualMapTheme](#VisualMapTheme)| -|serie||| [SerieTheme](#SerieTheme)| +|common||| [ComponentTheme](#componenttheme)| +|title||| [TitleTheme](#titletheme)| +|subTitle||| [SubTitleTheme](#subtitletheme)| +|legend||| [LegendTheme](#legendtheme)| +|axis||| [AxisTheme](#axistheme)| +|tooltip||| [TooltipTheme](#tooltiptheme)| +|dataZoom||| [DataZoomTheme](#datazoomtheme)| +|visualMap||| [VisualMapTheme](#visualmaptheme)| +|serie||| [SerieTheme](#serietheme)| ## ThemeStyle -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) 主题相关配置。 |field|default|since|comment| |--|--|--|--| |show|true|| -|sharedTheme|||主题配置。 [Theme](#Theme)| +|sharedTheme|||主题配置。 [Theme](#theme)| |transparentBackground|false||是否透明背景颜色。当设置为true时,不绘制背景颜色。 |enableCustomTheme|false||是否自定义主题颜色。当设置为true时,可以用‘sync color to custom’同步主题的颜色到自定义颜色。也可以手动设置。 |customFont||| @@ -1397,7 +1325,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## Title -Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPropertyChanged) +Inherits or Implemented: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) 标题组件,包含主标题和副标题。 @@ -1406,26 +1334,26 @@ Inherits or Implemented: [MainComponent](#MainComponent),[IPropertyChanged](#IPr |show|true||是否显示标题组件。 |text|||主标题文本,支持使用 \n 换行。 |subText|||副标题文本,支持使用 \n 换行。 -|labelStyle|||主标题文本样式。 [LabelStyle](#LabelStyle)| -|subLabelStyle|||副标题文本样式。 [LabelStyle](#LabelStyle)| +|labelStyle|||主标题文本样式。 [LabelStyle](#labelstyle)| +|subLabelStyle|||副标题文本样式。 [LabelStyle](#labelstyle)| |itemGap|0||主副标题之间的间距。 -|location|||标题显示位置。 [Location](#Location)| +|location|||标题显示位置。 [Location](#location)| ## TitleStyle -Inherits or Implemented: [LabelStyle](#LabelStyle),[ISerieDataComponent](#ISerieDataComponent),[ISerieExtraComponent](#ISerieExtraComponent) +Inherits or Implemented: [LabelStyle](#labelstyle),[ISerieDataComponent](#iseriedatacomponent),[ISerieExtraComponent](#iserieextracomponent) 标题相关设置。 ## TitleTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) ## Tooltip -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) 提示框组件。 @@ -1459,13 +1387,13 @@ Inherits or Implemented: [MainComponent](#MainComponent) |titleHeight|25f||标题文本的高。 |itemHeight|25f||数据项文本的高。 |borderColor|Color32(230, 230, 230, 255)||边框颜色。 -|lineStyle|||指示线样式。 [LineStyle](#LineStyle)| -|titleLabelStyle|||标题的文本样式。 [LabelStyle](#LabelStyle)| +|lineStyle|||指示线样式。 [LineStyle](#linestyle)| +|titleLabelStyle|||标题的文本样式。 [LabelStyle](#labelstyle)| |contentLabelStyles|||内容部分的文本样式列表。和列一一对应。 ## TooltipTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) |field|default|since|comment| |--|--|--|--| @@ -1478,7 +1406,7 @@ Inherits or Implemented: [ComponentTheme](#ComponentTheme) ## VisualMap -Inherits or Implemented: [MainComponent](#MainComponent) +Inherits or Implemented: [MainComponent](#maincomponent) 视觉映射组件。用于进行『视觉编码』,也就是将数据映射到视觉元素(视觉通道)。 @@ -1505,7 +1433,7 @@ Inherits or Implemented: [MainComponent](#MainComponent) |hoverLink|true||Conversely, when the mouse hovers over a graphic element in a diagram, the corresponding value of the visualMap component is triangulated in the corresponding position. |autoMinMax|true||Automatically set min, Max value 自动设置min,max的值 |orient|||布局方式是横还是竖。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|location|||组件显示的位置。 [Location](#Location)| +|location|||组件显示的位置。 [Location](#location)| |workOnLine|true||组件是否对LineChart的LineStyle有效。 |workOnArea|false||组件是否对LineChart的AreaStyle有效。 |outOfRange|||定义 在选中范围外 的视觉颜色。 @@ -1513,7 +1441,7 @@ Inherits or Implemented: [MainComponent](#MainComponent) ## VisualMapRange -Inherits or Implemented: [ChildComponent](#ChildComponent) +Inherits or Implemented: [ChildComponent](#childcomponent) |field|default|since|comment| |--|--|--|--| @@ -1524,7 +1452,7 @@ Inherits or Implemented: [ChildComponent](#ChildComponent) ## VisualMapTheme -Inherits or Implemented: [ComponentTheme](#ComponentTheme) +Inherits or Implemented: [ComponentTheme](#componenttheme) |field|default|since|comment| |--|--|--|--| @@ -1535,7 +1463,7 @@ Inherits or Implemented: [ComponentTheme](#ComponentTheme) ## XAxis -Inherits or Implemented: [Axis](#Axis) +Inherits or Implemented: [Axis](#axis) 直角坐标系 grid 中的 x 轴。 @@ -1545,11 +1473,11 @@ Inherits or Implemented: [Axis](#Axis) ## XCSettings -Inherits or Implemented: [ScriptableObject](#ScriptableObject) +Inherits or Implemented: [ScriptableObject](#scriptableobject) |field|default|since|comment| |--|--|--|--| -|lang||| [Lang](#Lang)| +|lang||| [Lang](#lang)| |font||| |tMPFont||| |fontSizeLv1|28||一级字体大小。 @@ -1589,11 +1517,8 @@ Inherits or Implemented: [ScriptableObject](#ScriptableObject) ## YAxis -Inherits or Implemented: [Axis](#Axis) +Inherits or Implemented: [Axis](#axis) 直角坐标系 grid 中的 y 轴。 -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XChartsAPI接口](XChartsAPI-ZH.md)
-[XCharts问答](XChartsFAQ-ZH.md) diff --git a/Documentation/XChartsFAQ-ZH.md b/Documentation~/zh/faq.md similarity index 95% rename from Documentation/XChartsFAQ-ZH.md rename to Documentation~/zh/faq.md index 44468e15..666238c1 100644 --- a/Documentation/XChartsFAQ-ZH.md +++ b/Documentation~/zh/faq.md @@ -1,8 +1,9 @@ -# 问答 +--- +sidebar_position: 4 +slug: /faq +--- -[XCharts主页](https://github.com/XCharts-Team/XCharts) -[XChartsAPI](XChartsAPI-ZH.md) -[XCharts配置项手册](XChartsConfiguration-ZH.md) +# 常见问题 [QA 1:如何调整坐标轴与背景的边距?](#如何调整坐标轴与背景的边距) [QA 2:如何让初始动画重新播放?](#如何让初始动画重新播放) @@ -110,7 +111,7 @@ ## 如何自定义Tooltip的显示内容 -答:自定义总的内容可以通过`Tooltip`的`formatter`。如果只是想调整所有的`serie`的显示格式可以用`itemFormatter`和`titleFormatter`结合。如果想每个`serie`的显示格式不一样,可以定制`serie`的`itemStyle`里的`tooltipFormatter`。具体的用法请查阅[XCharts配置项手册](XChartsConfiguration-ZH.md)。 +答:自定义总的内容可以通过`Tooltip`的`formatter`。如果只是想调整所有的`serie`的显示格式可以用`itemFormatter`和`titleFormatter`结合。如果想每个`serie`的显示格式不一样,可以定制`serie`的`itemStyle`里的`tooltipFormatter`。具体的用法请查阅[XCharts配置项手册](configuration.md)。 ## 如何让Y轴显示多位小数 @@ -118,7 +119,7 @@ ## 如何用代码动态更新数据 -答:请查阅`Example`下的代码,`Example13_LineSimple.cs`就是一个简单添加数据构建折线图的例子,其他`Demo`也都是通过代码控制不同的组件实现不同的功能,相关API请查看文档:[XChartsAPI接口](XChartsAPI-ZH.md) 。 +答:请查阅`Example`下的代码,`Example13_LineSimple.cs`就是一个简单添加数据构建折线图的例子,其他`Demo`也都是通过代码控制不同的组件实现不同的功能,相关API请查看文档:[XChartsAPI接口](api.md) 。 ## 如何显示图例_为什么有时候图例无法显示 @@ -167,6 +168,3 @@ 答:`Serie`的`data`是`double`类型,所以无法表示空数据。可通过开启`Serie`的`ignore`和指定`ignoreValue`来达到空数据的效果。也可以每个`SerieData`设置`ignore`参数。忽略数据后断开还是连接可设置`ignoreLineBreak`参数。 -[XCharts主页](https://github.com/XCharts-Team/XCharts) -[XChartsAPI](XChartsAPI-ZH.md) -[XCharts配置项手册](XChartsConfiguration-ZH.md) diff --git a/Documentation~/zh/img/readme_buildinchart.png b/Documentation~/zh/img/readme_buildinchart.png new file mode 100644 index 00000000..21183fab Binary files /dev/null and b/Documentation~/zh/img/readme_buildinchart.png differ diff --git a/Documentation~/zh/img/readme_extendchart.png b/Documentation~/zh/img/readme_extendchart.png new file mode 100644 index 00000000..1b21aedb Binary files /dev/null and b/Documentation~/zh/img/readme_extendchart.png differ diff --git a/Documentation~/zh/img/readme_xcharts3.png b/Documentation~/zh/img/readme_xcharts3.png new file mode 100644 index 00000000..16c8e6e5 Binary files /dev/null and b/Documentation~/zh/img/readme_xcharts3.png differ diff --git a/Documentation~/zh/img/support_alipay.png b/Documentation~/zh/img/support_alipay.png new file mode 100644 index 00000000..209d49d2 Binary files /dev/null and b/Documentation~/zh/img/support_alipay.png differ diff --git a/Documentation~/zh/img/support_wechat.png b/Documentation~/zh/img/support_wechat.png new file mode 100644 index 00000000..c2f8b677 Binary files /dev/null and b/Documentation~/zh/img/support_wechat.png differ diff --git a/Documentation~/zh/img/tutorial01_addcomponent.png b/Documentation~/zh/img/tutorial01_addcomponent.png new file mode 100644 index 00000000..420e39ab Binary files /dev/null and b/Documentation~/zh/img/tutorial01_addcomponent.png differ diff --git a/Documentation~/zh/img/tutorial01_addserie.png b/Documentation~/zh/img/tutorial01_addserie.png new file mode 100644 index 00000000..294b5fe7 Binary files /dev/null and b/Documentation~/zh/img/tutorial01_addserie.png differ diff --git a/Documentation~/zh/img/tutorial01_addseriecomponent.png b/Documentation~/zh/img/tutorial01_addseriecomponent.png new file mode 100644 index 00000000..ecc517fb Binary files /dev/null and b/Documentation~/zh/img/tutorial01_addseriecomponent.png differ diff --git a/Documentation~/zh/img/tutorial01_addseriedatacomponent.png b/Documentation~/zh/img/tutorial01_addseriedatacomponent.png new file mode 100644 index 00000000..6f74e895 Binary files /dev/null and b/Documentation~/zh/img/tutorial01_addseriedatacomponent.png differ diff --git a/Documentation~/zh/img/tutorial01_linechart1.png b/Documentation~/zh/img/tutorial01_linechart1.png new file mode 100644 index 00000000..703c6902 Binary files /dev/null and b/Documentation~/zh/img/tutorial01_linechart1.png differ diff --git a/Documentation~/zh/img/tutorial01_linechart2.png b/Documentation~/zh/img/tutorial01_linechart2.png new file mode 100644 index 00000000..308870d8 Binary files /dev/null and b/Documentation~/zh/img/tutorial01_linechart2.png differ diff --git a/Documentation~/zh/img/tutorial01_linechart3.png b/Documentation~/zh/img/tutorial01_linechart3.png new file mode 100644 index 00000000..a91064e4 Binary files /dev/null and b/Documentation~/zh/img/tutorial01_linechart3.png differ diff --git a/Documentation~/zh/img/tutorial01_linechart4.png b/Documentation~/zh/img/tutorial01_linechart4.png new file mode 100644 index 00000000..929591e7 Binary files /dev/null and b/Documentation~/zh/img/tutorial01_linechart4.png differ diff --git a/Documentation~/zh/img/tutorial01_linechart_simple.png b/Documentation~/zh/img/tutorial01_linechart_simple.png new file mode 100644 index 00000000..39e521fd Binary files /dev/null and b/Documentation~/zh/img/tutorial01_linechart_simple.png differ diff --git a/Documentation~/zh/img/tutorial01_textmeshpro.png b/Documentation~/zh/img/tutorial01_textmeshpro.png new file mode 100644 index 00000000..8ea4172e Binary files /dev/null and b/Documentation~/zh/img/tutorial01_textmeshpro.png differ diff --git a/Documentation~/zh/img/tutorial01_textmeshpro_font.png b/Documentation~/zh/img/tutorial01_textmeshpro_font.png new file mode 100644 index 00000000..52f71b77 Binary files /dev/null and b/Documentation~/zh/img/tutorial01_textmeshpro_font.png differ diff --git a/Documentation/SUPPORT.md b/Documentation~/zh/support.md similarity index 96% rename from Documentation/SUPPORT.md rename to Documentation~/zh/support.md index 27a357ad..bbe7f59e 100644 --- a/Documentation/SUPPORT.md +++ b/Documentation~/zh/support.md @@ -1,3 +1,8 @@ +--- +sidebar_position: 6 +slug: /support +--- + # 订阅服务 如需技术支持,可订阅`个人VIP`服务。扫后面的二维码后可加VIP群`867291970`,验证信息请输入付费的账号。 @@ -40,7 +45,7 @@ | 可另付费定制 | | | √ | √ | √ | | 可另付费加急 | | | √ | √ | √ | | VIP专有功能教程和文档 | | | √待开放 | √待开放 | √待开放 | -| 扩展图表购买 | | | 按需购买 | __全部免费__ | 按需购买 | +| 扩展图表购买 | | | 按需购买 | __全部免费__ | __全部免费__ | | 扩展图表源码 | | | 永久持有 | 永久持有 | 永久持有 | | 扩展图表更新 | | | 1年更新支持 | 1年更新支持 | 1年更新支持 | @@ -73,5 +78,5 @@ 如果这个项目对您有帮助,请右上方点 `Star` 予以支持!也欢迎任意金额的捐助,非常您的支持! -![alipay-qrcode](res/alipay.png) -![wechat-qrcode](res/wechat.png) +![alipay-qrcode](img/support_alipay.png) +![wechat-qrcode](img/support_wechat.png) diff --git a/Documentation/XChartsTutorial01-ZH.md b/Documentation~/zh/tutorial01.md similarity index 89% rename from Documentation/XChartsTutorial01-ZH.md rename to Documentation~/zh/tutorial01.md index 0403ed27..3d027094 100644 --- a/Documentation/XChartsTutorial01-ZH.md +++ b/Documentation~/zh/tutorial01.md @@ -1,9 +1,10 @@ -# 教程:5分钟上手 XCharts 3.0 +--- +title: 入门教程:5分钟上手 XCharts 3.0 +sidebar_position: 1 +slug: /tutorial01 +--- -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XCharts问答](XChartsFAQ-ZH.md)
-[XChartsAPI接口](XChartsAPI-ZH.md)
-[XCharts配置项手册](XChartsConfiguration-ZH.md) +# 教程:5分钟上手 XCharts 3.0 ## 获取和导入 XCharts @@ -33,46 +34,46 @@ XCharts可通过以下任意一种方式导入到项目: 在`Hierarchy`视图下右键或菜单栏`GameObject`下拉选择`XCharts->LineChart`,即可快速创建一个默认的折线图出来: -![linechart1](res/linechart1.png) +![linechart1](img/tutorial01_linechart1.png) ## 添加多个Seire 在`Inspector`视图,找到`LineChart`的面板,通过`Add Serie`按钮,可以添加第二条`Line`折线: -![op_addserie](res/op_addserie.png) -![linechart2](res/linechart2.png) +![op_addserie](img/tutorial01_addserie.png) +![linechart2](img/tutorial01_linechart2.png) ## 添加其他组件 默认图表没有`Legend`,需要`Legend`组件可通过`Add Component`按钮添加: -![op_addcomponent](res/op_addcomponent.png) +![op_addcomponent](img/tutorial01_addcomponent.png) ## 添加Serie组件 Serie只自带了几个常见的组件,其他组件按需额外添加。比如,需要给折线图区域填充颜色,可单独给`Serie`添加`AreaStyle`组件: -![op_addseriecomponent](res/op_addseriecomponent.png) -![linechart3](res/linechart3.png) +![op_addseriecomponent](img/tutorial01_addseriecomponent.png) +![linechart3](img/tutorial01_linechart3.png) ## 添加SerieData组件 如果需要个性化定制每个数据项的配置,可以单独给每个`SerieData`添加`Component`。比如我们给折线图的第二个数据单独显示`Label`: -![op_addseriedatacomponent](res/op_addseriedatacomponent.png) -![linechart4](res/linechart4.png) +![op_addseriedatacomponent](img/tutorial01_addseriedatacomponent.png) +![linechart4](img/tutorial01_linechart4.png) ## 更多组件和配置参数 XCharts经过不断的迭代优化,目前已有多达几十种的主组件和子组件,每个组件有几个至几十个不等的可配置参数,以支持各种灵活而复杂的功能。 -首次使用XCharts,可在 `Inspector` 视图添加各种图表,给图表添加或调整里面组件,`Game` 视图会实时反馈调整后的效果,以熟悉各种组件的使用。各个组件的详细参数说明可查阅[XCharts配置项手册](XChartsConfiguration-ZH.md)。 +首次使用XCharts,可在 `Inspector` 视图添加各种图表,给图表添加或调整里面组件,`Game` 视图会实时反馈调整后的效果,以熟悉各种组件的使用。各个组件的详细参数说明可查阅[XCharts配置项手册](configuration.md)。 ## 如何快速调整参数 `XCharts`是配置和数据来驱动的。想要什么效果,只需要去调整对应组件下的配置参数就可以,不需要去改`Hierarchy`视图下的节点,因为那些节点是由`XCharts`内部根据配置和数据生成的,即使改了也会在刷新时还原回来。 -如何快速定位你想要改的效果所对应的组件,这就需要对组件有一定的了解。比如我们想要让X轴的轴线末端显示箭头,如何定位?第一步,X轴定位到`XAxis0`;第二步,轴线定位到`AxisLine`;最后,再去看`AxisLine`组件下有没有这样的参数可以实现这个效果,对于不太确定的参数可以查阅[XCharts配置项手册](XChartsConfiguration-ZH.md)。 +如何快速定位你想要改的效果所对应的组件,这就需要对组件有一定的了解。比如我们想要让X轴的轴线末端显示箭头,如何定位?第一步,X轴定位到`XAxis0`;第二步,轴线定位到`AxisLine`;最后,再去看`AxisLine`组件下有没有这样的参数可以实现这个效果,对于不太确定的参数可以查阅[XCharts配置项手册](configuration.md)。 `XCharts`提供从全局`Theme`、系列`Serie`、单个数据项`SerieData`三方面全方位的参数配置。优先级从大到小为:`SerieData`->`Serie`->`Theme`。以`ItemStyle`的颜色为例: @@ -149,13 +150,13 @@ for (int i = 0; i < 10; i++) 这样一个简单的折线图就出来了: -![linechart-simple](res/linechart-simple.png) +![tutorial01_linechart_simple](img/tutorial01_linechart_simple.png) 如果一个Chart里面有多个系列时,则Axis的data只需要加一次,不要多个循环加重复了。记住:Axis的数据个数要和Serie的数据个数一致。 完整代码请查阅`Examples`:`Example13_LineSimple.cs` -你还可以用代码控制更多的参数,`Examples`下还有更多的其他例子,凡是`Inspector`上看到的可配置的参数,都可以通过代码来设置。[XCharts配置项手册](XChartsConfiguration-ZH.md)里面的所有参数都是可以通过代码控制的。 +你还可以用代码控制更多的参数,`Examples`下还有更多的其他例子,凡是`Inspector`上看到的可配置的参数,都可以通过代码来设置。[XCharts配置项手册](configuration.md)里面的所有参数都是可以通过代码控制的。 另外,除非定制,建议调用`Chart`下提供的`public`接口,特别是数据相关操作部分。这些接口内部会做一些关联处理,比如刷新图表等。常见的接口有: @@ -178,11 +179,11 @@ XCharts内部有自动刷新机制,但也是在一定条件才会触发。如 XCharts支持TextMeshPro,但默认是不开启的,需要自己手动切换。可通过以下方式开启和关闭: -![textmeshpro1](res/op_textmeshpro.png) +![textmeshpro1](img/tutorial01_textmeshpro.png) 开启后需要设置好TextMeshPro要用的全局字体,也可以在主题Theme里单独设置: -![textmeshpro-font](res/op_textmeshpro3.png) +![textmeshpro-font](img/tutorial01_textmeshpro_font.png) 建议在项目初就规划好是否使用TextMeshPro,并设置好字体。在已有很多图表的情况下切换TMP时,可能某些图表无法自动刷新,可以手动点击`Rebuild Chart Object`按钮来重建图表,即可正常初始化。 @@ -256,8 +257,3 @@ var itemStyle = serieData.GetOrAddComponent(); //给数据项添加It itemStyle.color = Color.blue; ``` - -[XCharts主页](https://github.com/XCharts-Team/XCharts)
-[XCharts问答](XChartsFAQ-ZH.md)
-[XChartsAPI接口](XChartsAPI-ZH.md)
-[XCharts配置项手册](XChartsConfiguration-ZH.md) diff --git a/Editor/ChildComponents/CommentItemDrawer.cs b/Editor/ChildComponents/CommentItemDrawer.cs index 962ba612..a674af30 100644 --- a/Editor/ChildComponents/CommentItemDrawer.cs +++ b/Editor/ChildComponents/CommentItemDrawer.cs @@ -15,7 +15,7 @@ namespace XCharts.Editor { ++EditorGUI.indentLevel; PropertyField(prop, "m_Content"); - PropertyField(prop, "m_Position"); + PropertyField(prop, "m_Location"); //PropertyField(prop, "m_MarkRect"); //PropertyField(prop, "m_MarkStyle"); PropertyField(prop, "m_LabelStyle"); diff --git a/Editor/ChildComponents/MarqueeStyleDrawer.cs b/Editor/ChildComponents/MarqueeStyleDrawer.cs new file mode 100644 index 00000000..28bf280e --- /dev/null +++ b/Editor/ChildComponents/MarqueeStyleDrawer.cs @@ -0,0 +1,25 @@ +using UnityEditor; +using UnityEngine; +using XCharts.Runtime; + +namespace XCharts.Editor +{ + [CustomPropertyDrawer(typeof(MarqueeStyle), true)] + public class MarqueeStyleDrawer : BasePropertyDrawer + { + public override string ClassName { get { return "MarqueeStyle"; } } + public override void OnGUI(Rect pos, SerializedProperty prop, GUIContent label) + { + base.OnGUI(pos, prop, label); + if (MakeComponentFoldout(prop, "m_Show", true)) + { + ++EditorGUI.indentLevel; + PropertyField(prop, "m_Apply"); + PropertyField(prop, "m_RealRect"); + PropertyField(prop, "m_LineStyle"); + PropertyField(prop, "m_AreaStyle"); + --EditorGUI.indentLevel; + } + } + } +} \ No newline at end of file diff --git a/Editor/ChildComponents/MarqueeStyleDrawer.cs.meta b/Editor/ChildComponents/MarqueeStyleDrawer.cs.meta new file mode 100644 index 00000000..e0659300 --- /dev/null +++ b/Editor/ChildComponents/MarqueeStyleDrawer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e1a225478c2e14da3854aea28fb59882 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/MainComponents/DataZoomEditor.cs b/Editor/MainComponents/DataZoomEditor.cs index f54c0012..fa85d49e 100644 --- a/Editor/MainComponents/DataZoomEditor.cs +++ b/Editor/MainComponents/DataZoomEditor.cs @@ -10,6 +10,7 @@ namespace XCharts.Editor { var m_SupportInside = baseProperty.FindPropertyRelative("m_SupportInside"); var m_SupportSlider = baseProperty.FindPropertyRelative("m_SupportSlider"); + var m_SupportMarquee = baseProperty.FindPropertyRelative("m_SupportMarquee"); var m_Start = baseProperty.FindPropertyRelative("m_Start"); var m_End = baseProperty.FindPropertyRelative("m_End"); var m_MinShowNum = baseProperty.FindPropertyRelative("m_MinShowNum"); @@ -22,6 +23,7 @@ namespace XCharts.Editor PropertyField("m_SupportInsideDrag"); } PropertyField(m_SupportSlider); + PropertyField(m_SupportMarquee); PropertyField("m_ZoomLock"); PropertyField("m_ScrollSensitivity"); PropertyField("m_RangeMode"); @@ -54,6 +56,7 @@ namespace XCharts.Editor PropertyListField("m_XAxisIndexs", true); PropertyListField("m_YAxisIndexs", true); } + PropertyField("m_MarqueeStyle"); --EditorGUI.indentLevel; } } diff --git a/Editor/Series/BarEditor.cs b/Editor/Series/BarEditor.cs index 0e16bccc..55a1af79 100644 --- a/Editor/Series/BarEditor.cs +++ b/Editor/Series/BarEditor.cs @@ -21,6 +21,7 @@ namespace XCharts.Editor PropertyField("m_BarType"); PropertyField("m_BarWidth"); PropertyField("m_BarGap"); + PropertyField("m_BarMaxWidth"); if (serie.IsUseCoord()) { PropertyField("m_RoundCap"); diff --git a/Examples/Example04_DataZoom.cs b/Examples/Example04_DataZoom.cs new file mode 100644 index 00000000..8f18c272 --- /dev/null +++ b/Examples/Example04_DataZoom.cs @@ -0,0 +1,50 @@ +using UnityEngine; +using XCharts.Runtime; + +namespace XCharts.Example +{ + [DisallowMultipleComponent] + [ExecuteInEditMode] + public class Example04_DataZoom : MonoBehaviour + { + BaseChart chart; + + void Awake() + { + chart = gameObject.GetComponent(); + if (chart == null) return; + var dataZoom = chart.GetChartComponent(); + if (dataZoom == null) return; + dataZoom.marqueeStyle.onStart = OnMarqueeStart; + dataZoom.marqueeStyle.onEnd = OnMarqueeEnd; + dataZoom.marqueeStyle.onGoing = OnMarquee; + } + + void OnMarqueeStart(DataZoom dataZoom) + { + //Debug.Log("OnMarqueeStart:" + dataZoom); + } + + void OnMarquee(DataZoom dataZoom) + { + //Debug.Log("OnMarquee:" + dataZoom); + } + + void OnMarqueeEnd(DataZoom dataZoom) + { + //Debug.Log("OnMarqueeEnd:" + dataZoom); + var serie = chart.GetSerie(0); + foreach (var serieData in serie.data) + { + if (dataZoom.IsInMarqueeArea(serieData)) + { + serieData.GetOrAddComponent().color = Color.red; + } + else + { + serieData.GetOrAddComponent().color = Color.clear; + } + } + } + } +} \ No newline at end of file diff --git a/Examples/Example04_DataZoom.cs.meta b/Examples/Example04_DataZoom.cs.meta new file mode 100644 index 00000000..e0a5838a --- /dev/null +++ b/Examples/Example04_DataZoom.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f2cc0ca220d904377984528de6214b97 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Documentation/README.md b/README-en.md similarity index 87% rename from Documentation/README.md rename to README-en.md index 49b99f61..3d8045ee 100644 --- a/Documentation/README.md +++ b/README-en.md @@ -10,6 +10,7 @@ Unity数据可视化图表插件。
中文 + 中文

@@ -45,12 +46,14 @@ A powerful, easy-to-use, configurable charting and data visualization library for Unity. Supporting line, bar, pie, radar, scatter, heatmap, ring, candlestick, polar, liquid and other common chart. Also support 3d pie, 3d bar, 3d pyramid, funnel, gauge, liquid, pictorialbar, gantt, treemap and ther extended chart. -[XCharts3.0 Tutorial](XChartsTutorial01-EN.md) -[XCharts3.0 API](XChartsAPI-EN.md) -[XCharts3.0 FAQ](XChartsFAQ-EN.md) -[XCharts3.0 Configurate](XChartsConfiguration-EN.md) -[XCharts3.0 Changelog](CHANGELOG.md) -[XCharts3.0 Support](SUPPORT.md) +[XCharts3.0 Homepage](https://xcharts-team.github.io) + +[XCharts3.0 Tutorial](Documentation~/en/tutorial01.md) +[XCharts3.0 API](Documentation~/en/api.md) +[XCharts3.0 FAQ](Documentation~/en/faq.md) +[XCharts3.0 Configurate](Documentation~/en/configuration.md) +[XCharts3.0 Changelog](Documentation~/en/changelog.md) +[XCharts3.0 Support](Documentation~/en/support.md) ## Features @@ -103,9 +106,9 @@ A powerful, easy-to-use, configurable charting and data visualization library fo ## Screenshots -![buildinchart](https://github.com/XCharts-Team/XCharts-Demo/blob/master/buildinchart.png) +![buildinchart](Documentation~/en/img/readme_buildinchart.png) -![extendchart](https://github.com/XCharts-Team/XCharts-Demo/blob/master/extendchart.png) +![extendchart](Documentation~/en/img/readme_extendchart.png) For more examples, see [XCharts-Demo](https://github.com/XCharts-Team/XCharts-Demo), You can also go to [Online Demo](https://xcharts-team.github.io/demo/) to see the running effect of `WebGL`. @@ -115,7 +118,7 @@ For more examples, see [XCharts-Demo](https://github.com/XCharts-Team/XCharts-De 2. Right-click `Hierarchy` view and choose `XCharts->LineChart` to create a default LineChart. 3. You can adjust the parameters of each component in `Inspector` and see the real-time effects in `Game` view. -See more tutorial: [XCharts tutorial: 5 minutes overhand tutorial](XChartsTutorial01-EN.md) +See more tutorial: [XCharts tutorial: 5 minutes overhand tutorial](Documentation~/en/tutorial01.md) ## FAQ @@ -130,12 +133,12 @@ A: It is currently only supported on Unity. Theoretically any version of Unity t ## Changelog -[Changelog](CHANGELOG.md) +[Changelog](Documentation~/en/changelog.md) ## Licenses -[MIT License](LICENSE.md) +[MIT License](https://github.com/XCharts-Team/XCharts/blob/master/LICENSE.md) ## Other -email: `monitor1394@gmail.com` \ No newline at end of file +email: `monitor1394@gmail.com` diff --git a/Documentation/CHANGELOG.md.meta b/README-en.md.meta similarity index 75% rename from Documentation/CHANGELOG.md.meta rename to README-en.md.meta index eea74aad..66c33d20 100644 --- a/Documentation/CHANGELOG.md.meta +++ b/README-en.md.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7425bc5c378354c95bb116c36dc1b5f8 +guid: 7c7e32dee55f747fdba157f6230f52b2 TextScriptImporter: externalObjects: {} userData: diff --git a/README.md b/README.md index 221f2aaa..dd1d3b8a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@
Unity数据可视化图表插件。
-
English README + English README

@@ -45,12 +45,14 @@ 一款基于`UGUI`的功能强大、简单易用的数据可视化图表插件。支持`折线图`、`柱状图`、`饼图`、`雷达图`、`散点图`、`热力图`、`环形图`、`K线图`、`极坐标`、`平行坐标`等十多种内置图表,以及`3D饼图`、`3D柱图`、`3D金字塔`、`漏斗图`、`仪表盘`、`水位图`、`象形柱图`、`甘特图`、`矩形树图`等扩展图表。 -[XCharts3.0 教程](Documentation/XChartsTutorial01-ZH.md) -[XCharts3.0 API](Documentation/XChartsAPI-ZH.md) -[XCharts3.0 问答](Documentation/XChartsFAQ-ZH.md) -[XCharts3.0 配置项手册](Documentation/XChartsConfiguration-ZH.md) -[XCharts3.0 更新日志](CHANGELOG.md) -[XCharts3.0 订阅服务](Documentation/SUPPORT.md) +[XCharts3.0 官方主页](https://xcharts-team.github.io) + +[XCharts3.0 教程](Documentation~/zh/tutorial01.md) +[XCharts3.0 API](Documentation~/zh/api.md) +[XCharts3.0 问答](Documentation~/zh/faq.md) +[XCharts3.0 配置项手册](Documentation~/zh/configuration.md) +[XCharts3.0 更新日志](Documentation~/zh/changelog.md) +[XCharts3.0 订阅服务](Documentation~/zh/support.md) ## 特性 @@ -71,9 +73,9 @@ ## 截图 -![内置图表](https://github.com/XCharts-Team/XCharts-Demo/blob/master/buildinchart.png) +![内置图表](Documentation~/zh/img/readme_buildinchart.png) -![扩展图表](https://github.com/XCharts-Team/XCharts-Demo/blob/master/extendchart.png) +![扩展图表](Documentation~/zh/img/readme_extendchart.png) XCharts不再内置Demo,Demo已独立出单独的仓库 [XCharts-Demo](https://github.com/XCharts-Team/XCharts-Demo),也可以在浏览器查看`WebGL`下的运行效果 [在线Demo](https://xcharts-team.github.io/demo/) 。 @@ -101,7 +103,7 @@ XCharts不再内置Demo,Demo已独立出单独的仓库 [XCharts-Demo](https:/ - 更高效的二次开发。 - 更丰富的Demo示例。 -![XCharts 3.0和2.0的对比](Documentation/res/xcharts3.0.png) +![XCharts 3.0和2.0的对比](Documentation~/zh/img/readme_xcharts3.png) ## 注意 @@ -116,7 +118,7 @@ XCharts不再内置Demo,Demo已独立出单独的仓库 [XCharts-Demo](https:/ 2. 在`Hierarchy`视图下右键选择`XCharts->LineChart`,即可创建一个默认的折线图。 3. 在`Inspector`视图可以调整各个组件的参数,`Game`视图可看到实时效果。 -- 更多使用细节,请看:[XCharts教程:5分钟上手教程](Documentation/XChartsTutorial01-ZH.md) +- 更多使用细节,请看:[XCharts教程:5分钟上手教程](Documentation~/zh/tutorial01.md) - 首次使用,建议先认真看一遍教程。 ## 分支 @@ -140,22 +142,22 @@ XCharts不再内置Demo,Demo已独立出单独的仓库 [XCharts-Demo](https:/ 答:目前只支持在`Unity`平台使用。理论上任何支持`UGUI`的`Unity`版本都能运行`XCharts`。 4. 锯齿怎么解决?支持多大量级的数据? - 答:`XCharts`是基于`UGUI`实现的,所以`UGUI`中碰到的问题,在`XCharts`中也会存在。比如锯齿问题,比如`Mesh`顶点数超`65535`的问题。这两个问题的解决可参考[问答16](Documentation/XChartsFAQ-ZH.md)和[问答27](Documentation/XChartsFAQ-ZH.md)。 + 答:`XCharts`是基于`UGUI`实现的,所以`UGUI`中碰到的问题,在`XCharts`中也会存在。比如锯齿问题,比如`Mesh`顶点数超`65535`的问题。这两个问题的解决可参考[问答16](Documentation~/zh/faq.md)和[问答27](Documentation~/zh/faq.md)。 由于`Mesh`的`65535`顶点数的限制,目前`XCharts`的单条`Line`支持约`2万`的数据量,当然开启采样可以支持更多数据的绘制,但同时也会更消耗CPU。 ## Licenses -- [MIT License](LICENSE.md) +- [MIT License](https://github.com/XCharts-Team/XCharts/blob/master/LICENSE.md) - 可免费商用,可二次开发 - 扩展图表需单独购买授权 ## 日志 -- [更新日志](CHANGELOG.md) +- [更新日志](Documentation~/zh/changelog.md) ## 其他 - 邮箱:`monitor1394@gmail.com` - QQ群:XCharts交流群(`202030963`) - VIP群:XCharts技术支持VIP群(`867291970`) -- 捐助、合作和技术支持:[☞ 看这里](Documentation/SUPPORT.md) +- 捐助、合作和技术支持:[☞ 看这里](Documentation~/zh/support.md) diff --git a/Resources/XCSettings.asset b/Resources/XCSettings.asset index 5b897015..5587633c 100644 --- a/Resources/XCSettings.asset +++ b/Resources/XCSettings.asset @@ -50,3 +50,5 @@ MonoBehaviour: m_CustomThemes: - {fileID: 11400000, guid: 289d2fc7f4ce24f73b9ed8ec52639f72, type: 2} - {fileID: 11400000, guid: e1dc23a10de1e4c5dbfbaf74c4dfd218, type: 2} + - {fileID: 11400000, guid: f917f38ce737f4563a377883dccaff8f, type: 2} + - {fileID: 11400000, guid: 376d15d5e9b694d75965c837a0fe1222, type: 2} diff --git a/Runtime/Component/Animation/AnimationStyle.cs b/Runtime/Component/Animation/AnimationStyle.cs index 367f880c..586e66a3 100644 --- a/Runtime/Component/Animation/AnimationStyle.cs +++ b/Runtime/Component/Animation/AnimationStyle.cs @@ -28,7 +28,7 @@ namespace XCharts.Runtime InsideOut, ///

/// Play the animation along the path. - /// |沿着路径播放动画。 + /// |沿着路径播放动画。当折线图从左到右无序或有折返时,可以使用该模式。 /// AlongPath, /// @@ -275,8 +275,6 @@ namespace XCharts.Runtime { if (m_IsInit || m_IsEnd) return; - if (curr > dest) - return; m_IsInit = true; m_TotalDetailProgress = dest - curr; diff --git a/Runtime/Component/Axis/AxisHandler.cs b/Runtime/Component/Axis/AxisHandler.cs index c419eb6b..0b7f8ae6 100644 --- a/Runtime/Component/Axis/AxisHandler.cs +++ b/Runtime/Component/Axis/AxisHandler.cs @@ -421,7 +421,7 @@ namespace XCharts label.SetActive(axis.axisName.labelStyle.show); label.SetPosition(axis.position == Axis.AxisPosition.Top ? new Vector2(zeroPos.x - offset.x, axisStartY + relativedLength + offset.y + axis.offset) : - new Vector2(zeroPos.x - offset.x, posY)); + new Vector2(zeroPos.x - offset.x, posY + offset.y)); break; case LabelStyle.Position.Middle: @@ -431,7 +431,7 @@ namespace XCharts label.SetActive(axis.axisName.labelStyle.show); label.SetPosition(axis.position == Axis.AxisPosition.Top ? new Vector2(axisStartX + axisLength / 2 + offset.x, axisStartY + relativedLength - offset.y + axis.offset) : - new Vector2(axisStartX + axisLength / 2 + offset.x, posY)); + new Vector2(axisStartX + axisLength / 2 + offset.x, posY + offset.y)); break; default: @@ -441,7 +441,7 @@ namespace XCharts label.SetActive(axis.axisName.labelStyle.show); label.SetPosition(axis.position == Axis.AxisPosition.Top ? new Vector2(axisStartX + axisLength + offset.x, axisStartY + relativedLength + offset.y + axis.offset) : - new Vector2(axisStartX + axisLength + offset.x, posY)); + new Vector2(axisStartX + axisLength + offset.x, posY + offset.y)); break; } } @@ -458,7 +458,7 @@ namespace XCharts label.SetActive(axis.axisName.labelStyle.show); label.SetPosition(axis.position == Axis.AxisPosition.Right ? new Vector2(axisStartX + relativedLength + offset.x + axis.offset, axisStartY - offset.y) : - new Vector2(posX, axisStartY - offset.y)); + new Vector2(posX + offset.x, axisStartY - offset.y)); break; case LabelStyle.Position.Middle: @@ -468,7 +468,7 @@ namespace XCharts label.SetActive(axis.axisName.labelStyle.show); label.SetPosition(axis.position == Axis.AxisPosition.Right ? new Vector2(axisStartX + relativedLength - offset.x + axis.offset, axisStartY + axisLength / 2 + offset.y) : - new Vector2(posX, axisStartY + axisLength / 2 + offset.y)); + new Vector2(posX + offset.x, axisStartY + axisLength / 2 + offset.y)); break; default: @@ -478,7 +478,7 @@ namespace XCharts label.SetActive(axis.axisName.labelStyle.show); label.SetPosition(axis.position == Axis.AxisPosition.Right ? new Vector2(axisStartX + relativedLength + offset.x + axis.offset, axisStartY + axisLength + offset.y) : - new Vector2(posX, axisStartY + axisLength + offset.y)); + new Vector2(posX + offset.x, axisStartY + axisLength + offset.y)); break; } } diff --git a/Runtime/Component/Axis/RadiusAxis/RadiusAxisHandler.cs b/Runtime/Component/Axis/RadiusAxis/RadiusAxisHandler.cs index 60382f55..a72e17c5 100644 --- a/Runtime/Component/Axis/RadiusAxis/RadiusAxisHandler.cs +++ b/Runtime/Component/Axis/RadiusAxis/RadiusAxisHandler.cs @@ -26,6 +26,8 @@ namespace XCharts.Runtime protected override void UpdatePointerValue(Axis axis) { + if (axis == null) + return; var polar = chart.GetChartComponent(axis.polarIndex); if (polar == null) return; @@ -47,6 +49,7 @@ namespace XCharts.Runtime private void UpdateAxisMinMaxValue(RadiusAxis axis, bool updateChart = true) { + if (axis == null) return; if (axis.IsCategory() || !axis.show) return; double tempMinValue = 0; double tempMaxValue = 0; @@ -70,6 +73,8 @@ namespace XCharts.Runtime internal void UpdateAxisLabelText(RadiusAxis axis) { + if (axis == null) + return; var polar = chart.GetChartComponent(axis.polarIndex); if (axis.context.labelObjectList.Count <= 0) InitRadiusAxis(axis); @@ -144,6 +149,9 @@ namespace XCharts.Runtime private void DrawRadiusAxis(VertexHelper vh, RadiusAxis radiusAxis) { + if (radiusAxis == null) + return; + var polar = chart.GetChartComponent(radiusAxis.polarIndex); if (polar == null) return; diff --git a/Runtime/Component/Child/MarqueeStyle.cs b/Runtime/Component/Child/MarqueeStyle.cs new file mode 100644 index 00000000..e28ee74d --- /dev/null +++ b/Runtime/Component/Child/MarqueeStyle.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; +using UnityEngine; + +namespace XCharts.Runtime +{ + /// + /// Marquee style. It can be used for the DataZoom component. + /// 选取框样式。可用于DataZoom组件。 + /// + [Since("v3.5.0")] + [System.Serializable] + public class MarqueeStyle : ChildComponent + { + [SerializeField][Since("v3.5.0")] private bool m_Apply = false; + [SerializeField][Since("v3.5.0")] private bool m_RealRect = false; + [SerializeField][Since("v3.5.0")] private AreaStyle m_AreaStyle = new AreaStyle(); + [SerializeField][Since("v3.5.0")] private LineStyle m_LineStyle = new LineStyle(); + + protected Action m_OnStart; + protected Action m_OnGoing; + protected Action m_OnEnd; + + /// + /// The area style of marquee. + /// |选取框区域填充样式。 + /// + public AreaStyle areaStyle { get { return m_AreaStyle; } set { m_AreaStyle = value; } } + /// + /// The line style of marquee border. + /// |选取框区域边框样式。 + /// + public LineStyle lineStyle { get { return m_LineStyle; } set { m_LineStyle = value; } } + /// + /// Check whether the scope is applied to the DataZoom. + /// If this parameter is set to true, the range after the selection is complete is the DataZoom selection range. + /// |选取框范围是否应用到DataZoom上。当为true时,框选结束后的范围即为DataZoom的选择范围。 + /// + public bool apply { get { return m_Apply; } set { m_Apply = value; } } + /// + /// Whether to select the actual box selection area. When true, + /// the actual range between the mouse's actual point and the end point is used as the box selection area. + /// |是否选取实际框选区域。当为true时,以鼠标的其实点和结束点间的实际范围作为框选区域。 + /// + public bool realRect { get { return m_RealRect; } set { m_RealRect = value; } } + /// + /// Customize the callback to the start of the selection of the checkbox. + /// |自定义选取框开始选取时的回调。 + /// + public Action onStart { set { m_OnStart = value; } get { return m_OnStart; } } + /// + /// Custom checkboxes select ongoing callbacks. + /// |自定义选取框选取进行时的回调。 + /// + public Action onGoing { set { m_OnStart = value; } get { return m_OnStart; } } + /// + /// Customize the callback at the end of the selection. + /// |自定义选取框结束选取时的回调。 + /// + public Action onEnd { set { m_OnEnd = value; } get { return m_OnEnd; } } + } +} \ No newline at end of file diff --git a/Runtime/Component/Child/MarqueeStyle.cs.meta b/Runtime/Component/Child/MarqueeStyle.cs.meta new file mode 100644 index 00000000..5c804f34 --- /dev/null +++ b/Runtime/Component/Child/MarqueeStyle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: effa7d6629485469d91d41f896b9de8d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Component/Comment/Comment.cs b/Runtime/Component/Comment/Comment.cs index 4274a774..f5a8dbef 100644 --- a/Runtime/Component/Comment/Comment.cs +++ b/Runtime/Component/Comment/Comment.cs @@ -10,7 +10,7 @@ namespace XCharts.Runtime /// [Serializable] [ComponentHandler(typeof(CommentHander), true)] - public class Comment : MainComponent + public class Comment : MainComponent, IPropertyChanged { [SerializeField] private bool m_Show = true; [SerializeField] private LabelStyle m_LabelStyle = new LabelStyle(); @@ -65,5 +65,17 @@ namespace XCharts.Runtime } return m_MarkStyle; } + + /// + /// Callback handling when parameters change. + /// |参数变更时的回调处理。 + /// + public void OnChanged() + { + foreach (var item in items) + { + item.location.OnChanged(); + } + } } } \ No newline at end of file diff --git a/Runtime/Component/Comment/CommentHander.cs b/Runtime/Component/Comment/CommentHander.cs index 92c17536..eef0f5d2 100644 --- a/Runtime/Component/Comment/CommentHander.cs +++ b/Runtime/Component/Comment/CommentHander.cs @@ -12,6 +12,7 @@ namespace XCharts.Runtime public override void InitComponent() { var comment = component; + comment.OnChanged(); comment.painter = null; comment.refreshComponent = delegate() { @@ -30,10 +31,12 @@ namespace XCharts.Runtime { var item = comment.items[i]; var labelStyle = comment.GetLabelStyle(i); + var labelPos = chart.chartPosition + item.location.GetPosition(chart.chartWidth, chart.chartHeight); var label = ChartHelper.AddChartLabel(s_CommentObjectName + i, commentObj.transform, labelStyle, chart.theme.common, GetContent(item), Color.clear, TextAnchor.MiddleCenter); label.SetActive(comment.show && item.show); - label.SetPosition(item.position + labelStyle.offset); + label.SetPosition(labelPos); + label.text.SetLocalPosition(labelStyle.offset); } }; comment.refreshComponent(); @@ -59,7 +62,7 @@ namespace XCharts.Runtime { var item = component.items[i]; var markStyle = component.GetMarkStyle(i); - if (!markStyle.show) continue; + if (markStyle == null || !markStyle.show) continue; var color = ChartHelper.IsClearColor(markStyle.lineStyle.color) ? chart.theme.axis.splitLineColor : markStyle.lineStyle.color; diff --git a/Runtime/Component/Comment/CommentItem.cs b/Runtime/Component/Comment/CommentItem.cs index 5a3a891f..2b7ab9dd 100644 --- a/Runtime/Component/Comment/CommentItem.cs +++ b/Runtime/Component/Comment/CommentItem.cs @@ -12,10 +12,11 @@ namespace XCharts.Runtime { [SerializeField] private bool m_Show = true; [SerializeField] private string m_Content = "comment"; - [SerializeField] private Vector3 m_Position; [SerializeField] private Rect m_MarkRect; [SerializeField] private CommentMarkStyle m_MarkStyle = new CommentMarkStyle() { show = false }; [SerializeField] private LabelStyle m_LabelStyle = new LabelStyle() { show = false }; + [SerializeField] [Since("v3.5.0")]private Location m_Location = new Location() { align = Location.Align.TopLeft, top = 0.125f }; + /// /// Set this to false to prevent this comment item from showing. @@ -23,11 +24,6 @@ namespace XCharts.Runtime /// public bool show { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); } } /// - /// position of comment. - /// |注解项的位置坐标。 - /// - public Vector3 position { get { return m_Position; } set { if (PropertyUtil.SetStruct(ref m_Position, value)) SetComponentDirty(); } } - /// /// content of comment. /// |注解的文本内容。支持模板参数,可以参考Tooltip的itemFormatter。 /// @@ -51,5 +47,14 @@ namespace XCharts.Runtime get { return m_LabelStyle; } set { if (PropertyUtil.SetClass(ref m_LabelStyle, value)) SetComponentDirty(); } } + /// + /// The location of comment. + /// |Comment显示的位置。 + /// + public Location location + { + get { return m_Location; } + set { if (PropertyUtil.SetClass(ref m_Location, value)) SetComponentDirty(); } + } } } \ No newline at end of file diff --git a/Runtime/Component/DataZoom/DataZoom.cs b/Runtime/Component/DataZoom/DataZoom.cs index 14b72be9..030a0c52 100644 --- a/Runtime/Component/DataZoom/DataZoom.cs +++ b/Runtime/Component/DataZoom/DataZoom.cs @@ -65,7 +65,7 @@ namespace XCharts.Runtime [SerializeField] private bool m_SupportInsideScroll = true; [SerializeField] private bool m_SupportInsideDrag = true; [SerializeField] private bool m_SupportSlider; - [SerializeField] private bool m_SupportSelect; + [SerializeField] private bool m_SupportMarquee; [SerializeField] private bool m_ShowDataShadow; [SerializeField] private bool m_ShowDetail; [SerializeField] private bool m_ZoomLock; @@ -90,6 +90,7 @@ namespace XCharts.Runtime [SerializeField] private LabelStyle m_LabelStyle = new LabelStyle(); [SerializeField] private LineStyle m_LineStyle = new LineStyle(LineStyle.Type.Solid); [SerializeField] private AreaStyle m_AreaStyle = new AreaStyle(); + [SerializeField][Since("v3.5.0")] private MarqueeStyle m_MarqueeStyle = new MarqueeStyle(); public DataZoomContext context = new DataZoomContext(); @@ -141,7 +142,8 @@ namespace XCharts.Runtime set { if (PropertyUtil.SetStruct(ref m_SupportInside, value)) SetVerticesDirty(); } } /// - /// 是否支持坐标系内滚动 + /// Whether inside scrolling is supported. + /// |是否支持坐标系内滚动 /// public bool supportInsideScroll { @@ -149,7 +151,8 @@ namespace XCharts.Runtime set { if (PropertyUtil.SetStruct(ref m_SupportInsideScroll, value)) SetVerticesDirty(); } } /// - /// 是否支持坐标系内拖拽 + /// Whether insde drag is supported. + /// |是否支持坐标系内拖拽 /// public bool supportInsideDrag { @@ -166,12 +169,13 @@ namespace XCharts.Runtime set { if (PropertyUtil.SetStruct(ref m_SupportSlider, value)) SetVerticesDirty(); } } /// - /// 是否支持框选。提供一个选框进行数据区域缩放。 + /// Supported Box Selected. Provides a marquee for scaling the data area. + /// |是否支持框选。提供一个选框进行数据区域缩放。 /// - public bool supportSelect + public bool supportMarquee { - get { return m_SupportSelect; } - set { if (PropertyUtil.SetStruct(ref m_SupportSelect, value)) SetVerticesDirty(); } + get { return m_SupportMarquee; } + set { if (PropertyUtil.SetStruct(ref m_SupportMarquee, value)) SetVerticesDirty(); } } /// /// Whether to show data shadow, to indicate the data tendency in brief. @@ -363,6 +367,14 @@ namespace XCharts.Runtime get { return m_AreaStyle; } set { if (PropertyUtil.SetClass(ref m_AreaStyle, value)) SetComponentDirty(); } } + /// + /// 选取框样式。 + /// + public MarqueeStyle marqueeStyle + { + get { return m_MarqueeStyle; } + set { if (PropertyUtil.SetClass(ref m_MarqueeStyle, value)) SetAllDirty(); } + } class AxisIndexValueInfo { @@ -414,6 +426,7 @@ namespace XCharts.Runtime show = true, opacity = 0.3f }; + m_MarqueeStyle = new MarqueeStyle(); } /// @@ -515,6 +528,25 @@ namespace XCharts.Runtime } } + public bool IsInMarqueeArea(SerieData serieData) + { + return IsInMarqueeArea(serieData.context.position); + } + + public bool IsInMarqueeArea(Vector2 pos) + { + if (!supportMarquee) return false; + if (context.marqueeRect.width >= 0) + { + return context.marqueeRect.Contains(pos); + } + else + { + var rect = context.marqueeRect; + return (new Rect(rect.x + rect.width, rect.y, -rect.width, rect.height)).Contains(pos); + } + } + public bool IsContainsAxis(Axis axis) { if (axis == null) diff --git a/Runtime/Component/DataZoom/DataZoomContext.cs b/Runtime/Component/DataZoom/DataZoomContext.cs index 49cf852c..d856eadc 100644 --- a/Runtime/Component/DataZoom/DataZoomContext.cs +++ b/Runtime/Component/DataZoom/DataZoomContext.cs @@ -22,5 +22,10 @@ namespace XCharts.Runtime /// public double endValue { get; set; } public bool invert { get; set; } + + public bool isMarqueeDrag { get; set; } + public Vector3 marqueeStartPos { get; set; } + public Vector3 marqueeEndPos { get; set; } + public Rect marqueeRect { get; set; } } } \ No newline at end of file diff --git a/Runtime/Component/DataZoom/DataZoomHandler.cs b/Runtime/Component/DataZoom/DataZoomHandler.cs index 8f57bc9b..50f9f755 100644 --- a/Runtime/Component/DataZoom/DataZoomHandler.cs +++ b/Runtime/Component/DataZoom/DataZoomHandler.cs @@ -72,9 +72,11 @@ namespace XCharts.Runtime { case Orient.Horizonal: DrawHorizonalDataZoomSlider(vh, dataZoom); + DrawMarquee(vh, dataZoom); break; case Orient.Vertical: DrawVerticalDataZoomSlider(vh, dataZoom); + DrawMarquee(vh, dataZoom); break; } } @@ -87,14 +89,14 @@ namespace XCharts.Runtime if (Input.touchCount > 1) return; - Vector2 pos; - if (!chart.ScreenPointToChartPoint(eventData.position, out pos)) - return; - var dataZoom = component; if (!dataZoom.enable) return; + Vector2 pos; + if (!chart.ScreenPointToChartPoint(eventData.position, out pos)) + return; + var grid = chart.GetGridOfDataZoom(dataZoom); if (dataZoom.supportInside && dataZoom.supportInsideDrag) { @@ -103,6 +105,23 @@ namespace XCharts.Runtime dataZoom.context.isCoordinateDrag = true; } } + if (dataZoom.supportMarquee) + { + dataZoom.context.isMarqueeDrag = true; + dataZoom.context.marqueeStartPos = pos; + dataZoom.context.marqueeEndPos = pos; + + if (dataZoom.marqueeStyle.realRect) + dataZoom.context.marqueeRect = new Rect(pos.x, pos.y, 0, 0); + else + dataZoom.context.marqueeRect = new Rect(pos.x, grid.context.y, 0, grid.context.height); + + if (dataZoom.marqueeStyle.onStart != null) + { + dataZoom.marqueeStyle.onStart(dataZoom); + } + return; + } if (dataZoom.supportSlider) { if (!dataZoom.zoomLock) @@ -136,18 +155,40 @@ namespace XCharts.Runtime var dataZoom = component; var grid = chart.GetGridOfDataZoom(dataZoom); - switch (dataZoom.orient) + if (dataZoom.supportMarquee) { - case Orient.Horizonal: - var deltaPercent = eventData.delta.x / grid.context.width * 100; - OnDragInside(dataZoom, deltaPercent); - OnDragSlider(dataZoom, deltaPercent); - break; - case Orient.Vertical: - deltaPercent = eventData.delta.y / grid.context.height * 100; - OnDragInside(dataZoom, deltaPercent); - OnDragSlider(dataZoom, deltaPercent); - break; + Vector2 pos; + if (!chart.ScreenPointToChartPoint(eventData.position, out pos)) + return; + + dataZoom.context.marqueeEndPos = pos; + var oldRect = dataZoom.context.marqueeRect; + var rectWidth = pos.x - dataZoom.context.marqueeStartPos.x; + if (dataZoom.marqueeStyle.realRect) + dataZoom.context.marqueeRect = Rect.MinMaxRect(dataZoom.context.marqueeStartPos.x, pos.y, pos.x, dataZoom.context.marqueeStartPos.y); + else + dataZoom.context.marqueeRect = new Rect(oldRect.x, oldRect.y, rectWidth, oldRect.height); + + dataZoom.SetVerticesDirty(); + if (dataZoom.marqueeStyle.onGoing != null) + dataZoom.marqueeStyle.onGoing(dataZoom); + return; + } + else + { + switch (dataZoom.orient) + { + case Orient.Horizonal: + var deltaPercent = eventData.delta.x / grid.context.width * 100; + OnDragInside(dataZoom, deltaPercent); + OnDragSlider(dataZoom, deltaPercent); + break; + case Orient.Vertical: + deltaPercent = eventData.delta.y / grid.context.height * 100; + OnDragInside(dataZoom, deltaPercent); + OnDragSlider(dataZoom, deltaPercent); + break; + } } } @@ -157,6 +198,23 @@ namespace XCharts.Runtime return; var dataZoom = component; + + if (dataZoom.supportMarquee) + { + dataZoom.context.isMarqueeDrag = false; + if (dataZoom.marqueeStyle.apply) + { + var grid = chart.GetGridOfDataZoom(dataZoom); + var start = (dataZoom.context.marqueeRect.x - grid.context.x) / grid.context.width * 100; + var end = (dataZoom.context.marqueeRect.x - grid.context.x + dataZoom.context.marqueeRect.width) / grid.context.width * 100; + UpdateDataZoomRange(dataZoom, start, end); + } + if (dataZoom.marqueeStyle.onEnd != null) + { + dataZoom.marqueeStyle.onEnd(dataZoom); + } + return; + } if (dataZoom.context.isDrag || dataZoom.context.isStartDrag || dataZoom.context.isEndDrag || dataZoom.context.isCoordinateDrag) { @@ -208,6 +266,7 @@ namespace XCharts.Runtime UpdateDataZoomRange(dataZoom, start, end); } } + public override void OnScroll(PointerEventData eventData) { if (chart == null) @@ -215,14 +274,14 @@ namespace XCharts.Runtime if (Input.touchCount > 1) return; - Vector2 pos; - if (!chart.ScreenPointToChartPoint(eventData.position, out pos)) - return; - var dataZoom = component; if (!dataZoom.enable || dataZoom.zoomLock) return; + Vector2 pos; + if (!chart.ScreenPointToChartPoint(eventData.position, out pos)) + return; + var grid = chart.GetGridOfDataZoom(dataZoom); if ((dataZoom.supportInside && dataZoom.supportInsideScroll && grid.Contains(pos)) || dataZoom.IsInZoom(pos)) @@ -614,5 +673,13 @@ namespace XCharts.Runtime break; } } + + private void DrawMarquee(VertexHelper vh, DataZoom dataZoom) + { + if (!dataZoom.enable || !dataZoom.supportMarquee) + return; + var areaColor = dataZoom.marqueeStyle.areaStyle.GetColor(chart.theme.dataZoom.dataAreaColor); + UGL.DrawRectangle(vh, dataZoom.context.marqueeRect, areaColor); + } } } \ No newline at end of file diff --git a/Runtime/Component/Label/LabelLine.cs b/Runtime/Component/Label/LabelLine.cs index d092af18..87ae5854 100644 --- a/Runtime/Component/Label/LabelLine.cs +++ b/Runtime/Component/Label/LabelLine.cs @@ -36,8 +36,8 @@ namespace XCharts.Runtime [SerializeField] private float m_LineGap = 1.0f; [SerializeField] private float m_LineLength1 = 25f; [SerializeField] private float m_LineLength2 = 15f; - [SerializeField] private SymbolStyle m_StartSymbol = new SymbolStyle() { type = SymbolType.Circle, size = 3 }; - [SerializeField] private SymbolStyle m_EndSymbol = new SymbolStyle() { type = SymbolType.Circle, size = 3 }; + [SerializeField] private SymbolStyle m_StartSymbol = new SymbolStyle() { show = false, type = SymbolType.Circle, size = 3 }; + [SerializeField] private SymbolStyle m_EndSymbol = new SymbolStyle() { show = false, type = SymbolType.Circle, size = 3 }; public void Reset() { diff --git a/Runtime/Component/Tooltip/TooltipHandler.cs b/Runtime/Component/Tooltip/TooltipHandler.cs index bfdd627b..b927fe61 100644 --- a/Runtime/Component/Tooltip/TooltipHandler.cs +++ b/Runtime/Component/Tooltip/TooltipHandler.cs @@ -283,8 +283,10 @@ namespace XCharts.Runtime { if (isTriggerAxis) { + var index = serie.context.dataZoomStartIndex + (int) xAxis.context.pointerValue; serie.context.pointerEnter = true; - serie.context.pointerAxisDataIndexs.Add(serie.context.dataZoomStartIndex + (int) xAxis.context.pointerValue); + serie.context.pointerAxisDataIndexs.Add(index); + serie.context.pointerItemDataIndex = index; xAxis.context.axisTooltipValue = xAxis.context.pointerValue; } } @@ -562,7 +564,7 @@ namespace XCharts.Runtime break; Vector2 sp = new Vector2(pX, grid.context.y); Vector2 ep = new Vector2(pX, grid.context.y + grid.context.height); - var lineColor = TooltipHelper.GetLineColor(tooltip, chart.theme); + var lineColor = TooltipHelper.GetLineColor(tooltip, chart.theme.tooltip.lineColor); ChartDrawer.DrawLineStyle(vh, lineType, lineWidth, sp, ep, lineColor); if (tooltip.type == Tooltip.Type.Corss) { @@ -580,11 +582,12 @@ namespace XCharts.Runtime if (pX < grid.context.x) break; float pY = grid.context.y + grid.context.height; - Vector3 p1 = new Vector3(pX, grid.context.y); - Vector3 p2 = new Vector3(pX, pY); - Vector3 p3 = new Vector3(pX + tooltipSplitWid, pY); - Vector3 p4 = new Vector3(pX + tooltipSplitWid, grid.context.y); - UGL.DrawQuadrilateral(vh, p1, p2, p3, p4, chart.theme.tooltip.areaColor); + Vector3 p1 = chart.ClampInGrid(grid,new Vector3(pX, grid.context.y)); + Vector3 p2 = chart.ClampInGrid(grid,new Vector3(pX, pY)); + Vector3 p3 = chart.ClampInGrid(grid,new Vector3(pX + tooltipSplitWid, pY)); + Vector3 p4 = chart.ClampInGrid(grid,new Vector3(pX + tooltipSplitWid, grid.context.y)); + var areaColor = TooltipHelper.GetLineColor(tooltip, chart.theme.tooltip.areaColor); + UGL.DrawQuadrilateral(vh, p1, p2, p3, p4, areaColor); } break; } @@ -625,7 +628,7 @@ namespace XCharts.Runtime break; Vector2 sp = new Vector2(grid.context.x, pY); Vector2 ep = new Vector2(grid.context.x + grid.context.width, pY); - var lineColor = TooltipHelper.GetLineColor(tooltip, chart.theme); + var lineColor = TooltipHelper.GetLineColor(tooltip, chart.theme.tooltip.lineColor); ChartDrawer.DrawLineStyle(vh, lineType, lineWidth, sp, ep, lineColor); if (tooltip.type == Tooltip.Type.Corss) { @@ -660,7 +663,7 @@ namespace XCharts.Runtime if (tooltip.context.angle < 0) return; var theme = chart.theme; var m_AngleAxis = ComponentHelper.GetAngleAxis(chart.components, m_Polar.index); - var lineColor = TooltipHelper.GetLineColor(tooltip, theme); + var lineColor = TooltipHelper.GetLineColor(tooltip, theme.tooltip.lineColor); var lineType = tooltip.lineStyle.GetType(theme.tooltip.lineType); var lineWidth = tooltip.lineStyle.GetWidth(theme.tooltip.lineWidth); var cenPos = m_Polar.context.center; diff --git a/Runtime/Component/Tooltip/TooltipHelper.cs b/Runtime/Component/Tooltip/TooltipHelper.cs index 8f9d729d..eeae3318 100644 --- a/Runtime/Component/Tooltip/TooltipHelper.cs +++ b/Runtime/Component/Tooltip/TooltipHelper.cs @@ -87,7 +87,7 @@ namespace XCharts.Runtime else return tooltip.numericFormatter; } - public static Color32 GetLineColor(Tooltip tooltip, ThemeStyle theme) + public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor) { var lineStyle = tooltip.lineStyle; if (!ChartHelper.IsClearColor(lineStyle.color)) @@ -96,7 +96,7 @@ namespace XCharts.Runtime } else { - var color = theme.tooltip.lineColor; + var color = defaultColor; ChartHelper.SetColorOpacity(ref color, lineStyle.opacity); return color; } diff --git a/Runtime/Internal/BaseChart.API.cs b/Runtime/Internal/BaseChart.API.cs index 5a3330ee..84847cca 100644 --- a/Runtime/Internal/BaseChart.API.cs +++ b/Runtime/Internal/BaseChart.API.cs @@ -360,8 +360,10 @@ namespace XCharts.Runtime /// fadeIn animation. /// |开始渐入动画。 /// - public void AnimationFadeIn() + public void AnimationFadeIn(bool reset = true) { + if (reset) + AnimationReset(); foreach (var serie in m_Series) serie.AnimationFadeIn(); } diff --git a/Runtime/Internal/BaseChart.Serie.cs b/Runtime/Internal/BaseChart.Serie.cs index 7e0f3701..99ec7bc4 100644 --- a/Runtime/Internal/BaseChart.Serie.cs +++ b/Runtime/Internal/BaseChart.Serie.cs @@ -705,7 +705,7 @@ namespace XCharts.Runtime /// /// /// - public void UdpateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0) + public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0) { var xAxis = GetChartComponent(xAxisIndex); if (xAxis != null) diff --git a/Runtime/Internal/XChartsMgr.cs b/Runtime/Internal/XChartsMgr.cs index 654d359d..584ce315 100644 --- a/Runtime/Internal/XChartsMgr.cs +++ b/Runtime/Internal/XChartsMgr.cs @@ -20,8 +20,8 @@ namespace XCharts.Runtime [ExecuteInEditMode] public static class XChartsMgr { - public static readonly string version = "3.4.0"; - public static readonly int versionDate = 20221101; + public static readonly string version = "3.5.0"; + public static readonly int versionDate = 20221201; public static string fullVersion { get { return version + "-" + versionDate; } } internal static List chartList = new List(); diff --git a/Runtime/Serie/Pie/PieHandler.cs b/Runtime/Serie/Pie/PieHandler.cs index 1b8322ae..96b8b017 100644 --- a/Runtime/Serie/Pie/PieHandler.cs +++ b/Runtime/Serie/Pie/PieHandler.cs @@ -516,6 +516,7 @@ namespace XCharts.Runtime break; } } + DrawLabelLineSymbol(vh, labelLine, pos1, pos5, color); } } diff --git a/Runtime/Serie/Radar/RadarHandler.cs b/Runtime/Serie/Radar/RadarHandler.cs index df9dbbf5..8fb0d2fb 100644 --- a/Runtime/Serie/Radar/RadarHandler.cs +++ b/Runtime/Serie/Radar/RadarHandler.cs @@ -381,7 +381,7 @@ namespace XCharts.Runtime var lineStyle = SerieHelper.GetLineStyle(serie, serieData); Color32 areaColor, areaToColor; var colorIndex = serie.colorByData?j : serie.context.colorIndex; - var showArea = SerieHelper.GetAreaColor(out areaColor, out areaToColor, serie, serieData, chart.theme, colorIndex); + var showArea = SerieHelper.GetAreaColor(out areaColor, out areaToColor, serie, serieData, chart.theme, colorIndex - 1); var lineColor = SerieHelper.GetLineColor(serie, serieData, chart.theme, colorIndex); int dataCount = m_RadarCoord.indicatorList.Count; var index = serieData.index; @@ -435,6 +435,7 @@ namespace XCharts.Runtime if (showArea && j == endIndex && !serie.smooth) { + SerieHelper.GetAreaColor(out areaColor, out areaToColor, serie, serieData, chart.theme, colorIndex); UGL.DrawTriangle(vh, startPoint, firstPoint, centerPos, areaColor, areaColor, areaToColor); } if (lineStyle.show && j == endIndex && !serie.smooth) diff --git a/Runtime/Serie/Ring/RingHandler.cs b/Runtime/Serie/Ring/RingHandler.cs index 8c7828ba..08fdcd29 100644 --- a/Runtime/Serie/Ring/RingHandler.cs +++ b/Runtime/Serie/Ring/RingHandler.cs @@ -407,22 +407,8 @@ namespace XCharts.Runtime UGL.DrawLine(vh, pos1, pos5, labelLine.lineWidth, color); break; } - if (labelLine.startSymbol != null && labelLine.startSymbol.show) - { - DrawSymbol(vh, labelLine.startSymbol, pos1, color); - } - if (labelLine.endSymbol != null && labelLine.endSymbol.show) - { - DrawSymbol(vh, labelLine.endSymbol, pos5, color); - } + DrawLabelLineSymbol(vh, labelLine, pos1, pos5, color); } } - - private void DrawSymbol(VertexHelper vh, SymbolStyle symbol, Vector3 pos, Color32 defaultColor) - { - var color = symbol.GetColor(defaultColor); - chart.DrawSymbol(vh, symbol.type, symbol.size, 1, pos, - color, color, ColorUtil.clearColor32, color, symbol.gap, null); - } } } \ No newline at end of file diff --git a/Runtime/Serie/Serie.cs b/Runtime/Serie/Serie.cs index 478bd67e..5cabe856 100644 --- a/Runtime/Serie/Serie.cs +++ b/Runtime/Serie/Serie.cs @@ -252,6 +252,7 @@ namespace XCharts.Runtime [SerializeField] private BarType m_BarType = BarType.Normal; [SerializeField] private bool m_BarPercentStack = false; [SerializeField] private float m_BarWidth = 0; + [SerializeField][Since("v3.5.0")] private float m_BarMaxWidth = 0; [SerializeField] private float m_BarGap = 0.1f; [SerializeField] private float m_BarZebraWidth = 4f; [SerializeField] private float m_BarZebraGap = 2f; @@ -573,6 +574,15 @@ namespace XCharts.Runtime set { if (PropertyUtil.SetStruct(ref m_BarWidth, value)) SetVerticesDirty(); } } /// + /// The max width of the bar. Adaptive when default 0. + /// |柱条的最大宽度,默认为0为不限制最大宽度。支持设置成相对于类目宽度的百分比。 + /// + public float barMaxWidth + { + get { return m_BarMaxWidth; } + set { if (PropertyUtil.SetStruct(ref m_BarMaxWidth, value)) SetVerticesDirty(); } + } + /// /// The gap between bars between different series, is a percent value like '0.3f' , which means 30% of the bar width, can be set as a fixed value. /// Set barGap as '-1' can overlap bars that belong to different series, which is useful when making a series of bar be background. /// In a single coodinate system, this attribute is shared by multiple 'bar' series. @@ -1742,17 +1752,32 @@ namespace XCharts.Runtime public float GetBarWidth(float categoryWidth, int barCount = 0) { - if (categoryWidth < 2) return categoryWidth; - if (m_BarWidth == 0) + var realWidth = 0f; + if (categoryWidth < 2) + { + realWidth = categoryWidth; + } + else if (m_BarWidth == 0) { var width = ChartHelper.GetActualValue(0.6f, categoryWidth); if (barCount == 0) - return width < 1 ? categoryWidth : width; + realWidth = width < 1 ? categoryWidth : width; else - return width / barCount; + realWidth = width / barCount; } else - return ChartHelper.GetActualValue(m_BarWidth, categoryWidth); + { + realWidth = ChartHelper.GetActualValue(m_BarWidth, categoryWidth); + } + if (m_BarMaxWidth == 0) + { + return realWidth; + } + else + { + var maxWidth = ChartHelper.GetActualValue(m_BarMaxWidth, categoryWidth); + return realWidth > maxWidth ? maxWidth : realWidth; + } } public bool IsIgnoreIndex(int index, int dimension = 1) diff --git a/Runtime/Serie/SerieHandler.cs b/Runtime/Serie/SerieHandler.cs index ce6eb8e8..401fbb43 100644 --- a/Runtime/Serie/SerieHandler.cs +++ b/Runtime/Serie/SerieHandler.cs @@ -579,7 +579,7 @@ namespace XCharts.Runtime param.dataCount = serie.dataCount; param.value = serieData.GetData(param.dimension); param.ignore = ignore; - param.total = SerieHelper.GetMaxData(serie, dimension); + param.total = serie.multiDimensionLabel? serieData.GetTotalData() : serie.GetDataTotal(defaultDimension); param.color = color; param.marker = SerieHelper.GetItemMarker(serie, serieData, marker); param.itemFormatter = itemFormatter; @@ -593,5 +593,24 @@ namespace XCharts.Runtime paramList.Add(param); } + + public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor) + { + if (labelLine.startSymbol != null && labelLine.startSymbol.show) + { + DrawSymbol(vh, labelLine.startSymbol, startPos, defaultColor); + } + if (labelLine.endSymbol != null && labelLine.endSymbol.show) + { + DrawSymbol(vh, labelLine.endSymbol, endPos, defaultColor); + } + } + + private void DrawSymbol(VertexHelper vh, SymbolStyle symbol, Vector3 pos, Color32 defaultColor) + { + var color = symbol.GetColor(defaultColor); + chart.DrawSymbol(vh, symbol.type, symbol.size, 1, pos, + color, color, ColorUtil.clearColor32, color, symbol.gap, null); + } } } \ No newline at end of file diff --git a/package.json b/package.json index d855a1d3..1a863972 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "com.monitor1394.xcharts", "displayName": "XCharts", - "version": "3.4.0", - "date": "20221101", + "version": "3.5.0", + "date": "20221201", "checkdate": "20221101", "desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!", "unity": "2018.3",