Hi guys, I’m trying to make a datasource plugin for using it’s DataFrame in Grafana native Table visualisation. Couple of questions about configuration of Fields in my dataframe
- How should I config Fields in my DataFrame for getting links in specific column of the Table? That’s what I was trying, does not work:
const frame = new MutableDataFrame({ refId: query.refId, fields: [{ name: 'Name', type: FieldType.string, getLinks: (text) => [{ title: text, href: 'example.com/${text}', target: '_blank' }], }] })
- How to change cell’s text for specific Column/Field without changing the values? That’s what I was trying:
const frame = new MutableDataFrame({ refId: query.refId, fields: [{ name: 'Name', type: FieldType.string, display: (n) => n > 3 ? "Foo" : "Bar" }] })
- How to hide one of the Fields in DataFrame from showing it in a Table? Didn’t find anything in Documents