Unique label position per layer using same text style

Hi @Dan_Weaver,

Thanks for your post. I assume you’re using a custom textstyle that you developed yourself. In this case, you have a couple options.

Option 1 would be to keep most of your custom textstyle code in a base TextStyle class and then create smaller subclasses for the different label positioning. The would let you reuse most of your custom TextStyle code.

Option 2 may be more of what you’re asking. If your data has columns with values that you want to use to determine the label’s postion, then you could create a custom value style to switch the label’s position based on that data point’s column value.

Also, to find out more on our existing styles and how to extend, check out this blog post and extensibility guide. There’s this older post about creating a custom ValueStyle.

Let us know if you have other question or if I did not understand your original question.

Thanks,
John