Merge branch 'master' into 3.0

This commit is contained in:
monitor1394
2022-12-01 21:45:30 +08:00
110 changed files with 1431 additions and 2511 deletions

2
.github/FUNDING.yml vendored
View File

@@ -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']

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: e66d91d4c396b46bf87034c47ca3b43d
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 0793c29ff7adb422fb93f9f4e29d5a06
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 56516e67d6e88401e949d4e63792c638
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 40051c210ea1244a99317f3264ac567f
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 002217c6b4b5348bd86b5a6b881d2622
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 2c38d275e62c6471ea2f4ef69b87b220
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 1fdd2e77324c84364bf033ffefa41123
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 1d5cdb90dc99540768bfb21ea8243d04
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: e803ae0ae73794ec6891fed7551fe01d
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 4df833a2a1e6c4a7da37a08379dd2e18
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: a772f2d2a3f994d439db4a07365b9554
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 2ab7eabdc796a45aea5bc457dc9e27f8
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 377ae219d15f048108309cb7a04de87e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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:

View File

@@ -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:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -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:

View File

@@ -1,102 +1,45 @@
# Chart API
---
sidebar_position: 3
slug: /api
---
[XCharts Homepage](https://github.com/XCharts-Team/XCharts)<br/>
[XCharts Configuration](XChartsConfiguration-EN.md)<br/>
[XCharts FAQ](XChartsFAQ-EN.md)
# Chart API
## All Class
- [AnimationStyleHelper](#AnimationStyleHelper)
- [AxisContext](#AxisContext)
- [AxisHandler&lt;T&gt;](#AxisHandler&lt;T&gt;)
- [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&lt;T&gt;](#MainComponentHandler&lt;T&gt;)
- [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&lt;T&gt;](#SerieHandler&lt;T&gt;)
- [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&lt;T&gt;](#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&lt;T&gt;](#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&lt;T&gt;](#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&lt;T&gt;
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)<br/>Add a category data to yAxis. |
| AddYAxisIcon() |public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)<br/>Add an icon to yAxis. |
| AnimationEnable() |public void AnimationEnable(bool flag)<br/>Whether series animation enabel. |
| AnimationFadeIn() |public void AnimationFadeIn()<br/>fadeIn animation. |
| AnimationFadeIn() |public void AnimationFadeIn(bool reset = true)<br/>fadeIn animation. |
| AnimationFadeOut() |public void AnimationFadeOut()<br/>fadeIn animation. |
| AnimationPause() |public void AnimationPause()<br/>Pause animation. |
| AnimationReset() |public void AnimationReset()<br/>Reset animation. |
@@ -299,7 +242,6 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver
| TryAddChartComponent&lt;T&gt;() |public bool TryAddChartComponent&lt;T&gt;() where T : MainComponent|
| TryAddChartComponent&lt;T&gt;() |public bool TryAddChartComponent&lt;T&gt;(out T component) where T : MainComponent|
| TryGetChartComponent&lt;T&gt;() |public bool TryGetChartComponent&lt;T&gt;(out T component, int index = 0)|
| UdpateXAxisIcon() |public void UdpateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)<br/>Update xAxis icon. |
| UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, double value)<br/>Update serie data by serie index. |
| UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value)<br/>更新指定系列指定索引指定维数的数据。维数从0开始。 |
| UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, List&lt;double&gt; multidimensionalData)<br/>更新指定系列指定索引的数据项的多维数据。 |
@@ -312,12 +254,13 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver
| UpdateTheme() |public bool UpdateTheme(ThemeType theme)<br/>Update chart theme. |
| UpdateTheme() |public void UpdateTheme(Theme theme)<br/>Update chart theme info. |
| UpdateXAxisData() |public void UpdateXAxisData(int index, string category, int xAxisIndex = 0)<br/>Update category data. |
| UpdateXAxisIcon() |public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)<br/>Update xAxis icon. |
| UpdateYAxisData() |public void UpdateYAxisData(int index, string category, int yAxisIndex = 0)<br/>Update category data. |
| UpdateYAxisIcon() |public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)<br/>更新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&lt;T&gt;
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&lt;T&gt;
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()<br/>重新加载主题列表 |
| SwitchTheme() |public static void SwitchTheme(BaseChart chart, string themeName)|
[XCharts Homepage](https://github.com/XCharts-Team/XCharts)<br/>
[XCharts Configuration](XChartsConfiguration-EN.md)<br/>
[XCharts FAQ](XChartsFAQ-EN.md)

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View File

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -1,10 +1,5 @@
# 教程5分钟上手 XCharts 3.0
[XCharts主页](https://github.com/XCharts-Team/XCharts)<br/>
[XCharts问答](XChartsFAQ-ZH.md)<br/>
[XChartsAPI接口](XChartsAPI-ZH.md)<br/>
[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<ItemStyle>(); //给数据项添加It
itemStyle.color = Color.blue;
```
[XCharts主页](https://github.com/XCharts-Team/XCharts)<br/>
[XCharts问答](XChartsFAQ-ZH.md)<br/>
[XChartsAPI接口](XChartsAPI-ZH.md)<br/>
[XCharts配置项手册](XChartsConfiguration-ZH.md)

View File

View File

@@ -0,0 +1 @@
{}

View File

@@ -1,102 +1,45 @@
# API
---
sidebar_position: 3
slug: /api
---
[XCharts主页](https://github.com/XCharts-Team/XCharts)<br/>
[XCharts配置项手册](XChartsConfiguration-ZH.md)<br/>
[XCharts问答](XChartsFAQ-ZH.md)
# API手册
## All Class
## 所有类
- [AnimationStyleHelper](#AnimationStyleHelper)
- [AxisContext](#AxisContext)
- [AxisHandler&lt;T&gt;](#AxisHandler&lt;T&gt;)
- [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&lt;T&gt;](#MainComponentHandler&lt;T&gt;)
- [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&lt;T&gt;](#SerieHandler&lt;T&gt;)
- [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&lt;T&gt;](#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&lt;T&gt;](#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&lt;T&gt;](#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&lt;T&gt;
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)<br/>添加一个类目数据到指定的y轴。 |
| AddYAxisIcon() |public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)<br/>添加一个图标到指定的y轴。 |
| AnimationEnable() |public void AnimationEnable(bool flag)<br/>启用或关闭起始动画。 |
| AnimationFadeIn() |public void AnimationFadeIn()<br/>开始渐入动画。 |
| AnimationFadeIn() |public void AnimationFadeIn(bool reset = true)<br/>开始渐入动画。 |
| AnimationFadeOut() |public void AnimationFadeOut()<br/>开始渐出动画。 |
| AnimationPause() |public void AnimationPause()<br/>暂停动画。 |
| AnimationReset() |public void AnimationReset()<br/>重置动画。 |
@@ -299,7 +242,6 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver
| TryAddChartComponent&lt;T&gt;() |public bool TryAddChartComponent&lt;T&gt;() where T : MainComponent|
| TryAddChartComponent&lt;T&gt;() |public bool TryAddChartComponent&lt;T&gt;(out T component) where T : MainComponent|
| TryGetChartComponent&lt;T&gt;() |public bool TryGetChartComponent&lt;T&gt;(out T component, int index = 0)|
| UdpateXAxisIcon() |public void UdpateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)<br/>更新X轴图标。 |
| UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, double value)<br/>更新指定系列中的指定索引数据。 |
| UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value)<br/>更新指定系列指定索引指定维数的数据。维数从0开始。 |
| UpdateData() |public bool UpdateData(int serieIndex, int dataIndex, List&lt;double&gt; multidimensionalData)<br/>更新指定系列指定索引的数据项的多维数据。 |
@@ -312,12 +254,13 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver
| UpdateTheme() |public bool UpdateTheme(ThemeType theme)<br/>切换内置主题。 |
| UpdateTheme() |public void UpdateTheme(Theme theme)<br/>切换图表主题。 |
| UpdateXAxisData() |public void UpdateXAxisData(int index, string category, int xAxisIndex = 0)<br/>更新X轴类目数据。 |
| UpdateXAxisIcon() |public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)<br/>更新X轴图标。 |
| UpdateYAxisData() |public void UpdateYAxisData(int index, string category, int yAxisIndex = 0)<br/>更新Y轴类目数据。 |
| UpdateYAxisIcon() |public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)<br/>更新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&lt;T&gt;
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&lt;T&gt;
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()<br/>重新加载主题列表 |
| SwitchTheme() |public static void SwitchTheme(BaseChart chart, string themeName)|
[XCharts主页](https://github.com/XCharts-Team/XCharts)<br/>
[XCharts配置项手册](XChartsConfiguration-ZH.md)<br/>
[XCharts问答](XChartsFAQ-ZH.md)

View File

@@ -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

View File

@@ -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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -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)

View File

@@ -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)<br/>
[XCharts问答](XChartsFAQ-ZH.md)<br/>
[XChartsAPI接口](XChartsAPI-ZH.md)<br/>
[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<ItemStyle>(); //给数据项添加It
itemStyle.color = Color.blue;
```
[XCharts主页](https://github.com/XCharts-Team/XCharts)<br/>
[XCharts问答](XChartsFAQ-ZH.md)<br/>
[XChartsAPI接口](XChartsAPI-ZH.md)<br/>
[XCharts配置项手册](XChartsConfiguration-ZH.md)

View File

@@ -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");

View File

@@ -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;
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e1a225478c2e14da3854aea28fb59882
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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;
}
}

View File

@@ -21,6 +21,7 @@ namespace XCharts.Editor
PropertyField("m_BarType");
PropertyField("m_BarWidth");
PropertyField("m_BarGap");
PropertyField("m_BarMaxWidth");
if (serie.IsUseCoord<PolarCoord>())
{
PropertyField("m_RoundCap");

View File

@@ -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<BaseChart>();
if (chart == null) return;
var dataZoom = chart.GetChartComponent<DataZoom>();
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<ItemStyle>().color = Color.red;
}
else
{
serieData.GetOrAddComponent<ItemStyle>().color = Color.clear;
}
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f2cc0ca220d904377984528de6214b97
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -10,6 +10,7 @@
Unity数据可视化图表插件。
<br>
<a href="https://github.com/XCharts-Team/XCharts">中文</a>
<a href="https://github.com/XCharts-Team/XCharts">中文</a>
</p>
<p align="center">
<a href="https://github.com/XCharts-Team/XCharts/blob/master/LICENSE">
@@ -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`
email: `monitor1394@gmail.com`

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 7425bc5c378354c95bb116c36dc1b5f8
guid: 7c7e32dee55f747fdba157f6230f52b2
TextScriptImporter:
externalObjects: {}
userData:

View File

@@ -9,7 +9,7 @@
<br/>
Unity数据可视化图表插件。
<br/>
<a href="Documentation/README.md">English README</a>
<a href="README-en.md">English README</a>
</p>
<p align="center">
<a href="https://github.com/XCharts-Team/XCharts/blob/master/LICENSE">
@@ -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不再内置DemoDemo已独立出单独的仓库 [XCharts-Demo](https://github.com/XCharts-Team/XCharts-Demo),也可以在浏览器查看`WebGL`下的运行效果 [在线Demo](https://xcharts-team.github.io/demo/) 。
@@ -101,7 +103,7 @@ XCharts不再内置DemoDemo已独立出单独的仓库 [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不再内置DemoDemo已独立出单独的仓库 [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不再内置DemoDemo已独立出单独的仓库 [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)

View File

@@ -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}

View File

@@ -28,7 +28,7 @@ namespace XCharts.Runtime
InsideOut,
/// <summary>
/// Play the animation along the path.
/// |沿着路径播放动画。
/// |沿着路径播放动画。当折线图从左到右无序或有折返时,可以使用该模式。
/// </summary>
AlongPath,
/// <summary>
@@ -275,8 +275,6 @@ namespace XCharts.Runtime
{
if (m_IsInit || m_IsEnd)
return;
if (curr > dest)
return;
m_IsInit = true;
m_TotalDetailProgress = dest - curr;

View File

@@ -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;
}
}

View File

@@ -26,6 +26,8 @@ namespace XCharts.Runtime
protected override void UpdatePointerValue(Axis axis)
{
if (axis == null)
return;
var polar = chart.GetChartComponent<PolarCoord>(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<PolarCoord>(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<PolarCoord>(radiusAxis.polarIndex);
if (polar == null)
return;

View File

@@ -0,0 +1,62 @@
using System;
using System.Collections.Generic;
using UnityEngine;
namespace XCharts.Runtime
{
/// <summary>
/// Marquee style. It can be used for the DataZoom component.
/// 选取框样式。可用于DataZoom组件。
/// </summary>
[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<DataZoom> m_OnStart;
protected Action<DataZoom> m_OnGoing;
protected Action<DataZoom> m_OnEnd;
/// <summary>
/// The area style of marquee.
/// |选取框区域填充样式。
/// </summary>
public AreaStyle areaStyle { get { return m_AreaStyle; } set { m_AreaStyle = value; } }
/// <summary>
/// The line style of marquee border.
/// |选取框区域边框样式。
/// </summary>
public LineStyle lineStyle { get { return m_LineStyle; } set { m_LineStyle = value; } }
/// <summary>
/// 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的选择范围。
/// </summary>
public bool apply { get { return m_Apply; } set { m_Apply = value; } }
/// <summary>
/// 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时以鼠标的其实点和结束点间的实际范围作为框选区域。
/// </summary>
public bool realRect { get { return m_RealRect; } set { m_RealRect = value; } }
/// <summary>
/// Customize the callback to the start of the selection of the checkbox.
/// |自定义选取框开始选取时的回调。
/// </summary>
public Action<DataZoom> onStart { set { m_OnStart = value; } get { return m_OnStart; } }
/// <summary>
/// Custom checkboxes select ongoing callbacks.
/// |自定义选取框选取进行时的回调。
/// </summary>
public Action<DataZoom> onGoing { set { m_OnStart = value; } get { return m_OnStart; } }
/// <summary>
/// Customize the callback at the end of the selection.
/// |自定义选取框结束选取时的回调。
/// </summary>
public Action<DataZoom> onEnd { set { m_OnEnd = value; } get { return m_OnEnd; } }
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: effa7d6629485469d91d41f896b9de8d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -10,7 +10,7 @@ namespace XCharts.Runtime
/// </summary>
[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;
}
/// <summary>
/// Callback handling when parameters change.
/// |参数变更时的回调处理。
/// </summary>
public void OnChanged()
{
foreach (var item in items)
{
item.location.OnChanged();
}
}
}
}

View File

@@ -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;

View File

@@ -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 };
/// <summary>
/// Set this to false to prevent this comment item from showing.
@@ -23,11 +24,6 @@ namespace XCharts.Runtime
/// </summary>
public bool show { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); } }
/// <summary>
/// position of comment.
/// |注解项的位置坐标。
/// </summary>
public Vector3 position { get { return m_Position; } set { if (PropertyUtil.SetStruct(ref m_Position, value)) SetComponentDirty(); } }
/// <summary>
/// content of comment.
/// |注解的文本内容。支持模板参数可以参考Tooltip的itemFormatter。
/// </summary>
@@ -51,5 +47,14 @@ namespace XCharts.Runtime
get { return m_LabelStyle; }
set { if (PropertyUtil.SetClass(ref m_LabelStyle, value)) SetComponentDirty(); }
}
/// <summary>
/// The location of comment.
/// |Comment显示的位置。
/// </summary>
public Location location
{
get { return m_Location; }
set { if (PropertyUtil.SetClass(ref m_Location, value)) SetComponentDirty(); }
}
}
}

View File

@@ -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(); }
}
/// <summary>
/// 是否支持坐标系内滚动
/// Whether inside scrolling is supported.
/// |是否支持坐标系内滚动
/// </summary>
public bool supportInsideScroll
{
@@ -149,7 +151,8 @@ namespace XCharts.Runtime
set { if (PropertyUtil.SetStruct(ref m_SupportInsideScroll, value)) SetVerticesDirty(); }
}
/// <summary>
/// 是否支持坐标系内拖拽
/// Whether insde drag is supported.
/// |是否支持坐标系内拖拽
/// </summary>
public bool supportInsideDrag
{
@@ -166,12 +169,13 @@ namespace XCharts.Runtime
set { if (PropertyUtil.SetStruct(ref m_SupportSlider, value)) SetVerticesDirty(); }
}
/// <summary>
/// 是否支持框选。提供一个选框进行数据区域缩放。
/// Supported Box Selected. Provides a marquee for scaling the data area.
/// |是否支持框选。提供一个选框进行数据区域缩放。
/// </summary>
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(); }
}
/// <summary>
/// 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(); }
}
/// <summary>
/// 选取框样式。
/// </summary>
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();
}
/// <summary>
@@ -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)

View File

@@ -22,5 +22,10 @@ namespace XCharts.Runtime
/// </summary>
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; }
}
}

View File

@@ -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);
}
}
}

View File

@@ -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()
{

View File

@@ -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;

Some files were not shown because too many files have changed in this diff Show More