Skip to content
HDCharts

Telemetry

HDCharts reports chart usage through PostHog. Reporting is disabled by default in development (CI and local builds). It is enabled for snapshot and production releases.

Collected data

InformationDescription
Chart typeThe chart used, such as line, bar, or pie.
Installation identifierPostHog's persistent anonymous identifier for an installation.
PlatformAndroid, iOS, JVM, or Wasm.
HDCharts versionThe library version in use.
SDK metadataPostHog SDK name and version, event timestamp, and event ID.

App/package IDs, hostnames, chart data, titles, labels, and application user identities are excluded.

When telemetry runs

Telemetry is controlled by the development Gradle property, which defaults to true:

BuilddevelopmentTelemetry
CI / local devtrue (default)Disabled
Snapshot releasefalseEnabled
Production releasefalseEnabled

Override with -Pdevelopment=false to enable telemetry in a development build, or -PchartsTelemetryEnabled=false to disable it in a release build.

Disable telemetry

To disable chart usage telemetry at runtime, set this before displaying any charts:

import io.github.hdcharts.core.ChartsTelemetry

ChartsTelemetry.enabled = false

Enable telemetry in development

To enable telemetry in a development build, pass the Gradle property:

-Pdevelopment=false

Or enable it at runtime before displaying charts:

import io.github.hdcharts.core.ChartsTelemetry

ChartsTelemetry.enabled = true