Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo_vue/app/examples/Basic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default Vue.extend({
onChartLoaded() {
const chart = this.$refs.chart['nativeView'] as LineChart;
chart.drawFrameRate = true;

// chart.setClipHighlightToContent(true);
// chart.backgroundColor = 'white';
// disable description text
// chart.getDescription().setEnabled(false);
Expand Down
8 changes: 8 additions & 0 deletions src/charting/charts/BarLineChartBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,14 @@ export abstract class BarLineChartBase<U extends Entry, D extends IBarLineScatte
*/
clipHighlightToContent = true;

public setClipHighlightToContent(enabled){
this.clipHighlightToContent = enabled;
}

public isClipHighlightToContentEnabled(){
return this.clipHighlightToContent;
}

public setDrawHighlight(enabled) {
this.mDrawHighlight = enabled;
}
Expand Down