我有以下代码在对话框中格式化MPAndroidChart BarChart:
Nov 15 14:22:58 iPad-Mini Warning 520 MyApp [Debug] Restoring CoreBluetooth Peripherals... (
Nov 15 14:22:58 iPad-Mini Warning 520 MyApp
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 15 MyApp 0x00083733 -[Messenger_iOS_TruConnectBLEFactory_ManagerDelegate centralManager:willRestoreState:] + 60
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical:
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 21 libdispatch.dylib 0x20df3b93 <redacted> + 182
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 13 libmonosgen-2.0.dylib 0x08d4ff6b mono_runtime_invoke + 138
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 4 libxamarin-debug.dylib 0x08fa2360 xamarin_printf + 0
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 24 libsystem_pthread.dylib 0x20fadb29 _pthread_wqthread + 1024
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 1 libsystem_platform.dylib 0x20faa077 _sigtramp + 42
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 2 libsystem_pthread.dylib 0x20fb0733 pthread_kill + 62
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 19 libdispatch.dylib 0x20df6423 <redacted> + 1758
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 8 libmonosgen-2.0.dylib 0x08cde29f handle_signal_exception + 42
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 12 libmonosgen-2.0.dylib 0x08d4ffd5 do_runtime_invoke + 78
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 14 MyApp 0x0008393b _ZL31native_to_managed_trampoline_55P11objc_objectP13objc_selectorPP11_MonoMethodP16CBCentralManagerP12NSDictionaryj + 516
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 16 CoreBluetooth 0x2637abe3 <redacted> + 2486
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical:
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 22 libdispatch.dylib 0x20df85e9 <redacted> + 1560
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 9 ??? 0x00000000 0x0 + 0
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 6 libmonosgen-2.0.dylib 0x08ce6235 mono_handle_exception_internal + 3162
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 11 libmonosgen-2.0.dylib 0x08cf10f5 mono_jit_runtime_invoke + 712
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp Unhandled managed exception:
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 25 libsystem_pthread.dylib 0x20fad718 start_wqthread + 8
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 7 libmonosgen-2.0.dylib 0x08ce55d7 mono_handle_exception + 30
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 5 libmonosgen-2.0.dylib 0x08d1d7cd mono_invoke_unhandled_exception_hook + 100
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 18 libdispatch.dylib 0x20de9823 <redacted> + 10
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 3 libsystem_c.dylib 0x20e9b0ad abort + 108
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 17 CoreBluetooth 0x263869f3 <redacted> + 62
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 10 libmscorlib.dll.dylib 0x00d49520 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 0 libmonosgen-2.0.dylib 0x08ce6637 mono_handle_native_crash + 196
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: Stacktrace:
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 23 libdispatch.dylib 0x20df7fcd <redacted> + 96
Nov 15 14:22:59 iPad-Mini Warning 520 MyApp critical: 20 libdispatch.dylib 0x20df5a61 <redacted> + 284
出于某种原因,当小于8个小节时(条形图可以显示的最大值),我的条形图与BarChart显示屏右对齐。我希望它们与左边对齐。我试图在Stack Overflow和官方MPAndroidChart GitHub上寻找解决方案,但似乎没有任何发布的解决方案。有谁知道我做错了什么?
答案 0 :(得分:0)
尝试将左轴作为默认轴。我不知道您在v 2.1.6中使用的是哪个版本:
1