customization of x-axis tick lines

In charts x-axis tick line below the bar, i'm sharing sample image go through that. is it possible 

Attachment: oie_7Y7LGGa1wNPJ_cc16c28.zip

3 Replies 1 reply marked as answer

SM Srihari Muthukaruppan Syncfusion Team September 15, 2020 11:53 AM UTC

Hi Kalyan, 
 
We have analysed your query. From that, we would like to let you know that we can achieve your requirement by using the majorTickLines and minorTickLines property in the axis of the chart. We have prepared a sample and also attached our UG link for your reference. Please find the below code snippet and screenshot. 
  
 
 
Code Snippet: 
App.component.ts: 
// add your additional code snippet here 
public primaryXAxis: Object = { 
        labelPlacement: 'OnTicks', 
        edgeLabelPlacement: 'Hide', 
        valueType: 'Category', 
        enableTrim: false, 
        majorTickLines: { height: 10, width: 1}, 
    };  
// add your additional code snippet here 
  
Screenshot: 
 
 
Let us know if you have any concerns. 
  
Regards, 
Srihari M 



KK Kalyan Kumar September 15, 2020 04:27 PM UTC

i tried what u given the snippet code. but it is not viewing as expected,go through the attachment  

Attachment: 111_b76fbee4.zip


SM Srihari Muthukaruppan Syncfusion Team September 16, 2020 09:55 AM UTC

Hi Kalyan,  
  
We have analysed your query. From that, we would like to let you know that we can customize the tick position by using tickPosition property. And also you can customize the width, height and color of the ticklines by using the majorTickLines and minorTickLines property in the axis of the chart as stated earlier. We have prepared a sample for your reference. Please find the below code snippet and screenshot.  
   
  
Code Snippet:  
App.component.ts:  
// add your additional code snippet here  
public primaryXAxis: Object = {  
        labelPlacement: 'OnTicks',  
        edgeLabelPlacement: 'Hide',  
        valueType: 'Category',  
        enableTrim: false,  
        tickPosition: 'Inside', 
        majorTickLines: { height: 10, width: 1, color: ‘red’},  
    };   
// add your additional code snippet here  
   
Screenshot:  
 
  
Since we are not aware of your exact requirement. So Please share the following information which will be more helpful for further analysis and provide you the solution sooner. 
 
  1. Share your dataSource file
 
  1. Try to reproduce the reported scenario in the above sample
 
  1. Share the details if you have done any other customization in your sample.
 
Regards,  
Srihari M 

Marked as answer
Loader.
Up arrow icon